Built backend in Ruby on Rails for final capstone project. For this project I have created a web app for booking an appointment for salon services.
- Using namespace and versioning for all the routes
- Using api authentication with json web tokens
- Using Active Model Serializers with josn_api adapter for json data for consistency
- User without login can access the
servicesend point - Only logged in user can access the
appointmentsend point and see their own appointments - Using factory bot for creating a mock user
api/v1/auth/signin(post)api/v1/auth/signup(post)api/v1/appointments(get, post)api/v1/services(get)
- Ruby
- Ruby on Rails
- Postgresql
- JWT (Json Web Token)
- Devise
- Active Model Serializers
- Factory Bot
- Rspec
- Capybara
- rubocop
- heroku
-
Ruby
-
Rails
-
Postgresql
To get a local copy up and running follow these simple steps:
Setup
- Clone this repository with git clone
git@github.com:Amita-Roy/Encapture-API.gitusing your terminal or command line. - Change to the project directory by entering
cd encapture-apiin the terminal - Next run
bundle installto install the necessary dependencies - run rails
active_storage:install - run
rails db:create - Run
rails db:migrateto setup your local database. - Run
rails db:seedto get seeded data for project. - Finally run
rails serverto start the application.
Start server with:
rails server
Open http://localhost:3000/ in your browser.
for test formatting add below script in .rspec file
--format documentation
--color
To run all the tests run below script in the terminal
rspec
👤 Amita Roy
Contributions, issues and feature requests are welcome!
Give a ⭐️ if you like this project!

