This project is an Api for a React-app.
This API is made of three models:
- User model
- Item model
- Favorite model
The API has the following endpoints:
POST /auth/login
allows user to authenticate and return a token
POST /signup
allows user to create an account
GET /profile
returns the user information
POST /profile
allows user to edit their profile
GET /items
returns all the items
POST /items
allows admin to create an item
GET /items/id
returns a specific item
PUT /items/id
allows admin to edit an item
DELETE /items/id
allows admin to delete an item
- Rails
- Ruby
- Heroku
Here are the steps to follow in order to get this project on your local computer.
rails v6.0.3 +
ruby v2.7.1 +
clone this repo by typing git clone https://github.com/Tresor11/final-capstone-api.git
install the dependencies by typing bundle install
start the local server by running rails s
run the tests by typing bundle exec rspec
this project is deployed on heroku
👤 Tresor bireke
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Hat tip to anyone whose code was used !
This project is MIT licensed.