Fast food is a food delivery service API for a restaurant.
- ESLint - Linting Tool
- Git clone repository
git clone <repo_url>
- Install all dependencies
npm install
npm start
Testing with Postman
* Install and setup Postman
* Navigate to localhost 3000
- Users can create their own user account.
- Users can sign in.
- User can place order.
- User can view their orders placed.
- User can view a specific order.
- User can edit specific order.
- User view their past orders.
- Admin can view menu items.
- Admin can create a new menu item.
- Admin can edit a specific menu item.
- Admin can delete a specific menu off item.
Method | Endpoint | Task |
---|---|---|
POST |
/api/auth/signup |
User signup |
POST |
/api/auth/login |
User login |
POST |
/api/fast-food/orders |
User can place order |
GET |
/api/fast-food/users/orders |
User can view their orders placed |
GET |
/api/fast-food/orders/:id |
User can view a specific order |
PUT |
/api/fast-food/orders/:id |
User can edit specific order |
GET |
/api/fast-food/orders/history |
User view their past orders |
GET |
/api/fast-food/menu |
Admin can view menu items |
POST |
/api/fast-food/menu |
Admin can create a new menu item |
PUT |
/api/fast-food/menu/:id |
Admin can edit a specific menu item |
DELETE |
/api/fast-food/menu/:id |
Admin can delete a specific menu off item |
created by myself Banobe Pascal