A platform where people get to order food added by the admin. The admin can then accept decline or complete the orders made.
To interact with the app UI, click link
here
To interact with the api endpoints, visit the link and add endpoints here
API documentation here
Endpoint | Functionality |
---|---|
POST /v1/users/orders | Create an order |
GET /v1/orders/ | Retrieve posted orders |
PUT /v1/orders/int:order_id | Update a specific order |
GET /v1/orders/int:order_id | Get a specific posted order |
DELETE /v1/orders/int:order_id | DELETE a specific posted order |
GET /v1/users/orders/int:order_id | GET a specific user's orders |
POST /v1/menu | Create food item |
GET /v1/menu | Retrieve posted food |
PUT /v1/food/int:food_id | Update a specific food |
GET /v1/food/int:food_id | Get a specific posted food |
DELETE /v1/food/int:food_id | DELETE a specific posted food |
POST /v1/auth/signup | Sign up User |
POST /v1/auth/login | Login User |
PUT /v1/users/int:id | Update a specific user |
GET /v1/users/int:id | Get a specific signed up user |
DELETE /v1/users/int:id | DELETE a specific signed up user |
GET /v1/users | Get all signed up users |
GET /v1/auth/logout | Logout a user |
- Create orders.
- view, accept, decline and complete an order.
- Create, edit and delete Food items.
- Authentication.
Users can do the following
- Users can create an account and log in.
- Users can order food.
- Users can view history of their order.
Admin can do the following
- Admin can add, edit and delete food items.
- Admin can view, accept, decline and complete an order.
- Clone the project to your local machine
https://github.com/EmmanuelBeja/Fast-Food-Fast-API.git
- Create Virtual Environment
virtualenv venv
- Activate Virtual ENvironment
source venv/bin/activate
- Install Dependencies
(venv)$ pip3 install -r requirements.txt
(venv)$ pip3 freeze > requirements.txt
- Run the app
python3 run.py
- Run tests
pytest
-
Fork the project to your github account.
-
Clone it to your local machine.
-
Create a feature branch from develop branch :
-
git checkout -b
ft-name-of-the-feature
-
Update and Push the changes to github.
-
git push origin
ft-name-of-the-feature
-
Create Pull Request to my develop branch as base branch.