How babireddy009/restaurant-app-backend works
This is a Django restaurant-ordering backend. Customers authenticate, browse the menu, place orders, and pay; orders then support status updates, delivery coordination, chat, and reviews. Staff and drivers are represented in the account roles and order data. The graph preserves those domain stages and the account, catalog, order, payment, and realtime layers. The README is empty, so capabilities and links here are grounded in the supplied source excerpts and SOURCE INDEX; unsampled routes and integrations are not expanded.
Main entry points: orders/views.py Order API · accounts/views.py Account API · payments/views.py Payment API · services.py Order Notifications
Components 20
Accounts
- Account API
accounts/views.py - Account Validation
accounts/serializers.py - User & OTP Data
accounts/models.py
Menu Catalog
- Menu API
menu/views.py - Menu Serialization
menu/serializers.py - Catalog & Gallery
menu/models.py
Orders & Delivery
- Order API
orders/views.py - Order Notifications
orders/services.py - Order Serialization
orders/serializers.py - Orders & Reviews
orders/models.py - WebSocket Routing
orders/routing.py - Order Chat
orders/consumers.py
Payments
- Payment API
payments/views.py - Payment Records
payments/models.py
Runtime Services
- Email Delivery
core/email_utils.py - SMS Delivery
core/sms_utils.py - Request Middleware
core/middleware.py
Other components
- Customer
- Staff / Driver
- Razorpay
Connections 26
- Customer → Account API: authenticates via
- Customer → Menu API: browses
- Customer → Order API: orders through
- Staff / Driver → Order API: manages orders
- Account API → Account Validation: validates with
accounts/views.py - Account API → User & OTP Data: reads / writes
accounts/views.py - Account Validation → User & OTP Data: validates against
accounts/serializers.py - Account API → Email Delivery: sends email
accounts/views.py - Account API → SMS Delivery: sends SMS
accounts/views.py - Menu API → Menu Serialization: serializes with
menu/views.py - Menu API → Catalog & Gallery: queries
menu/views.py - Menu Serialization → Catalog & Gallery: serializes
menu/serializers.py - Order API → Order Serialization: uses
orders/views.py - Order API → Orders & Reviews: reads / writes
orders/views.py - Order API → Order Notifications: invokes
orders/views.py - Order API → Catalog & Gallery: uses menu items
orders/views.py - Order API → Payment Records: checks payment
orders/views.py - Order Serialization → Orders & Reviews: serializes
orders/serializers.py - Order Notifications → Email Delivery: sends email
orders/services.py - Order Notifications → SMS Delivery: sends SMS
orders/services.py - WebSocket Routing → Order Chat: routes WebSocket
orders/routing.py - Order Chat → Orders & Reviews: uses chat data
orders/consumers.py - Payment API → Orders & Reviews: loads order
payments/views.py - Payment API → Payment Records: creates / updates
payments/views.py - Payment API → Order Notifications: sends confirmation
payments/views.py - Payment API → Razorpay: creates / verifies
payments/views.py