This is a rails api for a fitness app where users actions are saved to the database upon interaction with the apllication.
- The database has 3 tables User,Tips and Favourite
- User table has username and using Devise for authentication
- Tip table has title, description, instructions and benefits
- Favorite belongs to Tip and User tables
- Tips and Favourites can be seen only by authorized users
- To authorize users, this app uses JWT and Devise
- For cross site policy Rack-cors was used
- User profile image storage using Amazon S3.
- Ruby
- Ruby on Rails
- PostgreSQL
- Amazon S3
To get a local copy up and running follow these steps.
-
Clone the repo
https://github.com/ZawadiSumba66/stock-catalogue.git
- cd into
rails-backend
- Run
git pull origin rails-backend
- cd into
-
run
bundle install
to install gems in the Gemfile -
run
rails s
to start the app in thelocalhost:3000
, this will start the app in a new browser tab. -
run
rspec
to run all the test suites.
ROSE SUMBA
- MICROVERSE FOR THEIR SUPPORT THROUGH THIS WHOLE PROJECT
Give a ⭐️ if you like this project!
Released under MIT License