Book-A-Meal is an application that allows customers to make food orders and helps the food vendor know what the customers want to eat. This tracking helps keep work in order. Find it on https://bevkololi.github.io or clone the files from https://github.com/bevkololi/Book-A-Meal.git. You can then open index.html file on your browser. Documentation is also here https://bookameal2.docs.apiary.io/#
The application is built using the following technologies:
- Python 3.6
- Flask Microframework
Dependancies are installed in the requirements.txt tile, as long as one has set up one's own virtual environments. Process of using it includes customer sign up and loging in to access meals and make orders.
The UI page contains:
- User sign up and sign in pages
- A ppage where the caterer can perform CRUD operations i.e Create, Read, Update and modify meals
- A page where the caterer can add the meals of the day
- A page where users can see the menu
- A page where users can order the meal they want.
The following is a preview of the application:
The following tests have beeen setuo:
- test_meals.py: To test on the addition, updating or removal of meals
- test_orders.py: To test how to get the orders given by the customers
- test_auth.py: To test the sign in and login of applications Pytest is much prefered in conducting these tests.
The following are the API endpoints used in the application:
- /api/auth/signup: To register a user
- /api/auth/login: To login an authenticated user
- /api/v1/meals: To get meals available
- /api/v1/meals/int:id: To get meal using its meal id, and update or delete it
- /api/v1/orders: To get all the orders 6: /api/v1/orders/: To get orders by a particular customer
The endpoints have been tested on postman. Here are the expected outcomes:
Feedback is much appreciated.
Enjoy





