Skip to content

Scope of functionalities

ivanab edited this page Sep 18, 2021 · 1 revision

Scope of functionalities
There are 6 models (Users,Products,Shopping_Cart_Items,Categories,Orders,Orders_Details)
User can register(after registration email is sent to the user, and he needs to confirm it in order to login)
There are two possible authentication strategies Local which includes registration+login(email+password) and Google which connects Google profile to website
If User registers with invalid data there is validation to handle those situations
There are two possible roles for Users: admin & basic
Logged User(basic) can add/remove his/her favorite food
Logged User(basic) can add/remove Products to Shopping_Cart_Items
Logged User(basic) can make an Order which will take all data from Shopping_Cart_Items, transfer that data in new Order and create Orders_Details for that Order
Logged User(basic) can add/remove review from certain Product
User's review has: id of User who posted it,rating,comment
Each Product has its own average rating which is being calculated from all Users ratings of that specific Product
Logged User(admin) can add/remove/update Products & Categories
Logged User(admin) can remove other Users
Heroku:
https://api-food-delivery.herokuapp.com

Clone this wiki locally