A simple project with a real business case to practice Django knowledge
The idea of this project is to study some technologies like:
- Django
- CLI
- Tests
- Django template
The system should allow the user (Owner) to register new products and his ingredients. Also, the user (Customer) can construct his own Snack or Hamburger, and the system should provide the price of the product based in some rules.
As a start, you can use the below list of ingredients and theirs respective prices:
Ingredient | Price |
---|---|
Bread | R$2.50 |
Hamburger of Meat | R$5.00 |
Lettuce(Alface) | R$0.80 |
Bacon | R$3.00 |
Egg | R$1.20 |
Tomato | R$1.20 |
Cheese | R$2.50 |
To Calculate a Product´s price, you only needed to sum all the ingredients prices. But, there are some special conditions that can change the final price. It´s when the Product belongs to a Promotion. Take a look in the special rules below:
Promotion | Price Rules | Discount/Charge |
---|---|---|
Light | If the Product have Lettuce but not Bacon | 10% of Discount |
A lot o Meat | For each 3 portion of meat | The customer only pays 2 portions of meat |
A lot of Cheese | For each 3 portion of cheese | The customer only pays 2 portions of cheese |
[ ] ...