Skip to content

Pizza ordering app. The database model stores prices in a separate table to promote data flexibility if food prices change in future.

Notifications You must be signed in to change notification settings

MichaelVandi/pizza-hive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PizzaHive

_ Pizza ordering website inspired by pinnochio's pizza and subs menu _ My understanding of the menu

_ Since the menu was somehow complicated this is what I understood from it _

  • Toppings can only be applied to specific items (Pizzas and Subs)
  • Some Subs do not go with toppings except the steak and cheese sub which allows three types of toppings
  • Customers cannot select more than three toppings
  • Not all items have sizes like small or large

Models

Item

Has attributes:

  • name: The item's name
  • category : The category it belongs to
  • image
  • has_size: Boolean value - true if the item has small and large sizes false if it has only one size
  • has_topping: Boolean Value - true if toppings can be applied to that item

Sub

_ Sub is also an item but I decided to make it a separate model because it has one extra field :available_toppings _ Has attributes:

  • name : Char
  • image
  • has_topping: Boolean - True if that sub has available toppings in this case there is only one sub that accepts toppings
  • available_toppings_comma: List of toppings applicable separated by a comma
  • price_small: price of the small version
  • price_large: Price of the large Version

Topping

_ All toppings _ Has attributes:

  • name

Orders

_ All toppings _ Has attributes:

  • username: Username of the person who ordered
  • name: Customer's full name
  • items: items ordered
  • total: how much the items cost

Where am I getting the prices

_ Oh they are in a separate model, with foreign keys pointing to the item they represent _

Personal Touches

  • A page to manage orders only visible to staff or super users aka admins
  • Orders can be deleted from both admin end and customer end
  • Images for every menu item
  • Customers cannot select more than 3 toppings
  • Cart dictionary clears automatically after order is placed
  • Simple UI

About

Pizza ordering app. The database model stores prices in a separate table to promote data flexibility if food prices change in future.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published