How vaibhav-1786/food_delivery works
Quickbite is a three-portal food-delivery platform: customers discover food, build carts, check out, and track orders; restaurants manage menus and fulfillment; admins oversee platform operations. The React app calls a Flask API, whose domain routes use business services and SQLAlchemy models. The README documents a broad set of additional capabilities, represented here as domain subsystems where individual implementations were not sampled. Edges are limited to relationships shown in excerpts, the source index, or README; unverified integrations and unsampled call paths are omitted.
Main entry points: app.py Flask application · models.py Domain records · services Domain services · order_routes.py Checkout and orders
Components 24
Web portals
- Portal pages
frontend/src/pages - Session contexts
frontend/src/hooks - Route composition
frontend/src/App.jsx
API and access
- API endpoints
frontend/src/services/endpoints.js - Flask application
backend/app.py - Authentication
backend/routes/auth_routes.py - Role and permissions
backend/middleware/auth_middleware.py
Ordering
- Food discovery
backend/routes/food_routes.py - Cart
backend/routes/cart_routes.py - Checkout and orders
backend/routes/order_routes.py - Deal pricing
backend/services/pricing_service.py - Payments
backend/routes/payment_routes.py - Restaurant operations
backend/routes/restaurant_routes.py
Customer features
- Customer programs
backend/routes - Group ordering
backend/routes/group_order_routes.py
Platform operations
- Admin operations
backend/routes - Domain services
backend/services - Domain records
backend/models/models.py
Other components
- Customer
- Restaurant user
- Admin
- MySQL
- Razorpay
- OpenRouter AI
Connections 31
- Customer → Portal pages: uses
README.md - Restaurant user → Portal pages: uses
README.md - Admin → Portal pages: uses
README.md - Portal pages → Route composition: routes through
frontend/src/App.jsx - Route composition → Session contexts: provides contexts
frontend/src/App.jsx - Portal pages → API endpoints: requests endpoints
frontend/src/pages/admin/AdminAuthority.jsx - API endpoints → Flask application: HTTP requests
- Flask application → Authentication: registers
backend/app.py - Flask application → Food discovery: registers
backend/app.py - Flask application → Cart: registers
backend/app.py - Flask application → Checkout and orders: registers
backend/app.py - Flask application → Payments: registers
backend/app.py - Flask application → Restaurant operations: registers
backend/app.py - Authentication → Role and permissions: enforces access
- Food discovery → Domain records: queries
backend/routes/food_routes.py - Food discovery → Deal pricing: gets prices
backend/routes/food_routes.py - Cart → Domain records: uses records
- Checkout and orders → Domain records: creates orders
backend/routes/order_routes.py - Checkout and orders → Deal pricing: calculates prices
backend/routes/order_routes.py - Checkout and orders → Domain services: uses domain logic
backend/routes/order_routes.py - Checkout and orders → Payments: starts payment
- Payments → Razorpay: verifies payment
README.md - Restaurant operations → Domain records: uses records
backend/routes/restaurant_routes.py - Restaurant operations → Domain services: uses domain logic
backend/routes/restaurant_routes.py - Group ordering → Domain records: creates orders
backend/routes/group_order_routes.py - Group ordering → Domain services: uses services
backend/routes/group_order_routes.py - Customer programs → Domain services: domain capabilities
README.md - Admin operations → Domain services: domain capabilities
README.md - Domain services → Domain records: persists domain data
backend/services/review_service.py - Domain records → MySQL: stored in
README.md - Flask application → OpenRouter AI: AI integration
README.md