Skip to content

acid-weaver/djangodelights

Repository files navigation

login: ton
password: 123

Project on DockerHub! Install Docker, then run commands:
docker pull acidweaver/djangodelights:26.07.22
docker run --publish 8000:8000 acidweaver/djangodelights:26.07.22
Then run browser at localhost:8000

Plans: 
-Error handlers, try-except blocks
-Optimization (DB requests and cache)
-Full functionality of Menu view (with restriction to add new menu items and change recipes for not admins)
-Improve DB - delete RecipeRequirement table and add recipe field (JSON) to MenuItem table. Would works like Purchase table


-------------
PROJECT TASK:

You’ve been asked by a restaurant owner to build an application that will help keep track of how much food they have throughout the day. The owner starts the day with:

1. An inventory of different Ingredients, their available quantity, and their prices per unit
2. A list of the restaurant’s MenuItems, and the price set for each entry
3. A list of the ingredients that each menu item requires (RecipeRequirements)
4. A log of all Purchases made at the restaurant


Knowing that information, the restaurant, Django Delights’ owner has asked for the following features:

1. They should be able to enter in new recipes along with their recipe requirements, and how much that menu item costs.
2. They should also be able to add to the inventory a name of an ingredient, its price per unit, and how much of that item is available.
3. They should be able to enter in a customer purchase of a menu item. When a customer purchases an item off the menu, the inventory should be modified to accommodate
   what happened, as well as recording the time that the purchase was made.