How void-of-lust/prototypefypno2 works
PrototypeFyp is a Flask restaurant-ordering app for table-based customer orders, kitchen preparation, and admin management. The customer flow selects an order type, optionally uploads a food image, browses available drinks, places an order, and checks its status. Kitchen staff update drink-order statuses; admins manage the menu, payments, food prices, and sales/table dashboards. The excerpts show route-to-model and route-to-utility usage; database details come from the ORM models. The README provides no additional product description, and unsampled template behavior is not expanded here.
Main entry points: customer/routes.py Order journey · kitchen/routes.py Kitchen orders · admin/routes.py Admin dashboard · models.py Order models
Components 13
Customer ordering
- Order journey
app/customer/routes.py - Order status
app/customer/routes.py
Order operations
- Kitchen orders
app/kitchen/routes.py - Admin dashboard
app/admin/routes.py
App platform
- Role login
app/__init__.py - App factory
app/__init__.py - Order models
app/models.py - SQLAlchemy extension
app/extensions.py - Relational database
- Validation and uploads
app/utils.py
Other components
- Customer
- Kitchen staff
- Administrator
Connections 20
- Customer → Order journey: places order
app/customer/routes.py - Order journey → Order status: redirects to
app/customer/routes.py - Order journey → Order models: creates and queries
app/customer/routes.py - Order status → Order models: reads status
app/customer/routes.py - Order journey → Validation and uploads: validates uploads
app/customer/routes.py - Kitchen staff → Kitchen orders: updates orders
app/kitchen/routes.py - Kitchen orders → Order models: queries and updates
app/kitchen/routes.py - Kitchen orders → Validation and uploads: uses time helpers
app/kitchen/routes.py - Administrator → Admin dashboard: manages service
app/admin/routes.py - Admin dashboard → Order models: queries and updates
app/admin/routes.py - Admin dashboard → Validation and uploads: validates and stores images
app/admin/routes.py - App factory → Role login: defines routes
app/__init__.py - App factory → Order journey: registers blueprint
app/__init__.py - App factory → Kitchen orders: registers blueprint
app/__init__.py - App factory → Admin dashboard: registers blueprint
app/__init__.py - Order models → SQLAlchemy extension: maps with
app/models.py - Order journey → Relational database: reads and writes
app/customer/routes.py - Order status → Relational database: reads
app/customer/routes.py - Kitchen orders → Relational database: reads and writes
app/kitchen/routes.py - Admin dashboard → Relational database: reads and writes
app/admin/routes.py