How kavibalan1904/food-delivery-platform works
SwiftBite is a Chennai food-delivery platform. Customers discover restaurants and dishes, browse menus, authenticate, place orders, and track order progress; restaurant partners manage order-status updates. The React app provides these experiences through a FastAPI API, whose route handlers read and write a shared MongoDB or in-memory database. The graph includes the documented customer and partner capabilities, but several page implementations were only partially sampled, so some UI-to-API links rely on the README rather than inspected call sites.
Main entry points: App.jsx App Shell · restaurants.py Restaurant & Menu Routes · orders.py Order Routes · database.py Database & Seed Data
Components 18
Customer Web App
- App Shell
frontend/src/App.jsx - Navigation
frontend/src/components/Navbar.jsx - Restaurant Discovery
frontend/src/pages/HomePage.jsx - Restaurant Menu
frontend/src/pages/RestaurantPage.jsx - Shopping Cart
frontend/src/components/CartSidebar.jsx - Authentication UI
frontend/src/components/AuthModal.jsx - Order Tracking
frontend/src/pages/OrdersPage.jsx - Footer
frontend/src/components/Footer.jsx - Notifications
frontend/src/components/ToastContainer.jsx
Partner Operations
- Partner Dashboard
frontend/src/pages/PartnerDashboard.jsx
Backend API
- FastAPI Application
backend/main.py - Authentication Routes
backend/app/routes/auth.py - Restaurant & Menu Routes
backend/app/routes/restaurants.py - Order Routes
backend/app/routes/orders.py
Persistence
- Database & Seed Data
backend/app/database.py
Other components
- Customer
- Restaurant Partner
- MongoDB
Connections 25
- Customer → App Shell: uses
README.md - App Shell → Navigation: renders
frontend/src/App.jsx - App Shell → Restaurant Discovery: routes to
frontend/src/App.jsx - App Shell → Restaurant Menu: routes to
frontend/src/App.jsx - App Shell → Order Tracking: routes to
frontend/src/App.jsx - App Shell → Shopping Cart: renders
frontend/src/App.jsx - App Shell → Authentication UI: renders
frontend/src/App.jsx - App Shell → Footer: renders
frontend/src/App.jsx - App Shell → Notifications: renders
frontend/src/App.jsx - Restaurant Discovery → Restaurant & Menu Routes: fetches listings
frontend/src/pages/HomePage.jsx - Restaurant Discovery → Restaurant & Menu Routes: fetches trending
frontend/src/pages/HomePage.jsx - Restaurant Menu → Restaurant & Menu Routes: loads menu
README.md - Shopping Cart → Order Routes: places order
README.md - Authentication UI → Authentication Routes: registers or logs in
frontend/src/components/AuthModal.jsx - Order Tracking → Order Routes: loads order history
README.md - Restaurant Partner → Partner Dashboard: manages orders
README.md - Partner Dashboard → Order Routes: updates status
frontend/src/pages/PartnerDashboard.jsx - FastAPI Application → Authentication Routes: registers router
backend/main.py - FastAPI Application → Restaurant & Menu Routes: registers router
backend/main.py - FastAPI Application → Order Routes: registers router
backend/main.py - FastAPI Application → Database & Seed Data: connects and seeds
backend/main.py - Authentication Routes → Database & Seed Data: reads and writes users
backend/app/routes/auth.py - Restaurant & Menu Routes → Database & Seed Data: reads restaurants and menus
backend/app/routes/restaurants.py - Order Routes → Database & Seed Data: reads and writes orders
backend/app/routes/orders.py - Database & Seed Data → MongoDB: uses when available
README.md