In this project, I developed backend APIs for a hospital to book an appointment with doctor. See frontend project here User can send a post request to signup and login. Logged in user is assigned a json web token for authentication/authorization. Only authorized users can see the doctors and book an appointment. Unit tests are written using RSpec and Shoulda matcher.
- Ruby v2.7.0
- Ruby on Rails v5.2.4.2
- Gems used for testing: Capybara, Rspec-Rails, and Shoulda-matchers.
See live demo here
To get a local copy up and running follow these steps:
- Ruby: 2.6.3
- Rails: 5.2.3
- Postgres: >=9.5
- Git
- Fork/Clone this project to your local machine
- Open folder in your local enviroment and run thes lines of code to get started:
Install gems with:
bundle install
Setup database with:
rails db:create
rails db:migrate
rails db:seed
Start server with:
rails s -p 3001
Then open a web page and go to port 3001 on your local machine.
Public API url is https://frozen-river-95471.herokuapp.com/ You can test all the API endpoints in any API testing tools like Postman. See API documentation here
bundle exec rpsec
Follow vendor specific instructions to deploy the application.
- Add table for departments
- Success email after creating appointment
- Online payment
👤 Shabab Ali
- Github: @alishabab
- Twitter: @shabab_ali
- LinkedIn: shababali
- Email: shababsaifi@gmail.com
Contributions and feature requests are welcome!
Start by:
- Forking the project
- Cloning the project to your local machine
cd
into the project directory- Run
git checkout -b your-branch-name
- Make your contributions
- Push your branch up to your forked repository
- Open a Pull Request with a detailed description to the development(or master if not available) branch of the original project for a review
Give a ⭐️ if you like this project!
This project is MIT licensed.