How funlightstudios/food-delivery-platform works
SwissEat is a Flask food-delivery platform for customers, restaurant owners, and site staff. The main customer journey is browsing restaurants and menus, adding items to a cart, checking out with an accepted payment method, tracking orders, and reviewing delivered orders. Separate branches cover account management, restaurant operations, and staff administration. The excerpts show route-to-model interactions and app blueprint registration; other documented capabilities are represented, but unsampled implementation details and integrations are not inferred.
Main entry points: __init__.py Flask App · models.py Domain Models · restaurants/routes.py Restaurant Discovery · orders/routes.py Checkout & Orders
Components 22
Application Core
- Flask App
swisseat/__init__.py - Database Config
swisseat/config.py
Customer Journey
- Restaurant Discovery
swisseat/restaurants/routes.py - Home Page
swisseat/main/routes.py - Shopping Cart
swisseat/cart/routes.py - Checkout & Orders
swisseat/orders/routes.py - Accounts & Addresses
swisseat/users/routes.py - Restaurant Reviews
swisseat/reviews/routes.py
Restaurant Operations
- Restaurant Operations
swisseat/restaurants/routes.py - Owner Dashboard
swisseat/admin/routes.py
Staff Administration
- Staff Backend
swisseat/backend/routes.py - Site Admin
swisseat/admin/routes.py
Shared Domain
- Form Definitions
swisseat/users/forms.py - Restaurant Forms
swisseat/restaurants/forms.py - Review Forms
swisseat/reviews/forms.py - Backend Forms
swisseat/backend/forms.py - Domain Models
swisseat/models.py
Other components
- Customer
- Restaurant Owner
- Site Staff
- SQL Database
- Payment Options
Connections 34
- Customer → Home Page: browses
README.md - Home Page → Domain Models: queries restaurants
swisseat/main/routes.py - Customer → Restaurant Discovery: searches menus
README.md - Restaurant Discovery → Domain Models: queries listings
swisseat/restaurants/routes.py - Customer → Accounts & Addresses: registers or signs in
README.md - Accounts & Addresses → Domain Models: reads and writes accounts
swisseat/users/routes.py - Customer → Shopping Cart: adds items
README.md - Shopping Cart → Domain Models: reads and updates cart
swisseat/cart/routes.py - Customer → Checkout & Orders: places order
README.md - Checkout & Orders → Domain Models: creates order items
swisseat/orders/routes.py - Checkout & Orders → Payment Options: checks accepted methods
swisseat/orders/routes.py - Customer → Restaurant Reviews: rates delivered order
swisseat/reviews/routes.py - Restaurant Reviews → Domain Models: stores review and rating
swisseat/reviews/routes.py - Restaurant Owner → Restaurant Operations: manages restaurant
README.md - Restaurant Operations → Domain Models: updates menu and orders
swisseat/restaurants/routes.py - Restaurant Owner → Owner Dashboard: views dashboard
README.md - Owner Dashboard → Domain Models: queries management data
swisseat/admin/routes.py - Site Staff → Staff Backend: uses backend
README.md - Staff Backend → Domain Models: queries site data
swisseat/backend/routes.py - Site Staff → Site Admin: administers site
README.md - Flask App → Accounts & Addresses: registers blueprint
swisseat/__init__.py - Flask App → Restaurant Discovery: registers blueprint
swisseat/__init__.py - Flask App → Home Page: registers blueprint
swisseat/__init__.py - Flask App → Shopping Cart: registers blueprint
swisseat/__init__.py - Flask App → Checkout & Orders: registers blueprint
swisseat/__init__.py - Flask App → Restaurant Reviews: registers blueprint
swisseat/__init__.py - Flask App → Site Admin: registers blueprint
swisseat/__init__.py - Flask App → Staff Backend: registers blueprint
swisseat/__init__.py - Flask App → Database Config: loads configuration
swisseat/__init__.py - Domain Models → SQL Database: persists entities
README.md - Restaurant Discovery → Restaurant Forms: uses forms
swisseat/restaurants/routes.py - Accounts & Addresses → Form Definitions: uses forms
swisseat/users/routes.py - Restaurant Reviews → Review Forms: uses forms
swisseat/reviews/routes.py - Staff Backend → Backend Forms: uses forms
swisseat/backend/routes.py