- 📖 About the Project
- 💻 Getting Started
- Run tests
- Documentation
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- 📝 License
Doctor Appointment Backend Is a ruby on rails backend for a react/redux front end app. This deployed app serves the endpoints for users to signup, login, logout, create a doctor, fetch all doctors, remove a doctor, create an appointment, fetch all appointments, and delete an appointment, all with authentication.
- Data Model for users, doctors and appointments.
- Controllers with authentication for users, doctors and appointments.
- Endpoints for creating, logging in and signing out users.
- Endpoints for adding, updating, deleting and fetching doctors and appointments.
- Devise and JWT for Authentication
- Deployment
- API documentation
Our team has 4 members
To get a local copy up and running follow these simple example steps.
You need the following tools be installed in your computer:
- Git
- Ruby
- Ruby on Rails
- IDE
- Etc
Clone this repository to your desired folder:
cd my-prefered-folder
git clone https://github.com/sylvester-wamaya/doctor-appointment-backend.git
Install this project with:
cd doctor-appointment-backend
bundle install
- Navigate to config/database.yml
- Update the user and password to match your postgresql user and password.
- Remove config/master.key and config/credentials.yml.enc if they exist.
- Run
rails secret
. Copy the key. - Run EDITOR="code --wait" bin/rails credentials:edit
- In the editor that opens, add this: devise_jwt_secret_key: <the key you copied in step 2>
- Save the file and close the editor. New master.key, credentials.yml.enc files will be generated, and the key will be stored in
Rails.application.credentials.devise_jwt_secret_key
.
Run the following code-
rails db:create
rails db:migrate
rails s
To run tests, run the following command:
Run the rspec
command in your console to run the tests.
- The documentation for the API can be found here
👤 Clinton Younge
- GitHub: @ClintonYounge
- Linkedin: @clinton-younge
- Twitter: @YoungeCjay
👤 Sylvester Wamaya
- GitHub: @githubhandle
- LinkedIn: LinkedIn
👤 Mariano Benjamin
- GitHub: @githubhandle
- LinkedIn: LinkedIn
👤 Adeyemi Olusola
- Cancancan for admin, user and guest authorization.
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project feel free to leave a star to show your support.
We would like to give thanks to Microverse for providing an environment that makes us strive to grow as developers.
This project is License licensed.