@Doc is an application that'll allow users to register and create medical appointments or if they desire they can also reserve doctors. There are options so that users can add or delete a doctor. In a doctor's details page information relevant to appointments and reservations will be displayed.
MIT License
final_capstone_back_end The back-end component of this final capstone project is developed using Ruby on Rails, configured to serve as an API. This API is designed to facilitate medical appointments, and to allow users to make reservations for doctors. It leverages a PostgreSQL database to manage and store reservation data. The API is designed to be consumed by a front-end application, which is developed using React.js.
Model diagram
This project was completed by two Team members:
To get a local copy up and running, follow these steps:
Before you begin, ensure you have the following prerequisites installed on your system:
In your terminal, navigate to the folder of your choice and clone the repository with the following commands:
cd my-folder
git https://github.com/EvansSnave/final-capstone-project-back-end.git
After cloning the project, change into the project directory:
cd final_capstone_project_back_end
Install this project with:
In order to create databases and run the tests, you need to follow this steps:
rails secret
. This will generate a key. Copy and reserve the key to use later.$env:EDITOR="code --wait"; rails credentials:edit
If you use Linux run: EDITOR="code --wait" bin/rails credentials:edit
devise_jwt_secret_key: <the key you copied in step 2>
Rails.application.credentials.devise_jwt_secret_key
.Create and migrate your database with:
rails db:create
rails db:migrate
rails db:seed
To run the project, execute the following command:
rails server
or
rails s
This should start your local server on http://localhost:3000/. Now, you can use the REST API client of your choice to interact with the API.
To run tests, navigate to the directory where the project is located on your machine, open your terminal, and follow these steps:
Test Suite This project contains a suite of unit tests which you can run to ensure everything is functioning as expected. To run these tests, you need RSpec installed.
To install RSpec if you haven't already, run:
gem install rspec After you've installed RSpec, you can run the tests with:
bundle exec rspec spec/controllers bundle exec rspec spec/models
👤 EvanSnave
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project please feel free to send us corrections for make it better we would feel glad to read your comments. And think If you enjoy it gift us a star.
Can I use with a templeate your project?
Your project is free license?
This project is licensed under the MIT License - you can click here to have more details MIT.