How haswanth13901/zenoeats works
Zenoeats is a multi-tenant restaurant ordering platform with customer, restaurant-staff, and super-admin portals. The main customer journey is menu browsing, cart and checkout, server-side pricing and order creation, Stripe payment confirmation, then kitchen fulfillment and pickup or delivery handover. The map also includes identity, restaurant operations, storefront configuration, and administration. Backend relationships are grounded in the README and indexed excerpts; several frontend and service internals are unsampled, so their links are limited to documented capabilities.
Main entry points: orders.py Order API · tasks.py Payment worker · stripe_service.py Stripe payments · webhooks.py Webhook inbox
Components 26
Customer ordering
- Storefront
web/src/pages/storefront/StorefrontPage.tsx - Cart
web/src/pages/storefront/CartPage.tsx - Checkout
web/src/pages/storefront/CheckoutPage.tsx - Order tracking
web/src/pages/storefront/OrderPage.tsx - Customer identity
backend/app/api/v1/customer.py
Restaurant operations
- Restaurant API
backend/app/api/v1/restaurant.py - Kitchen board
web/src/pages/manage/KitchenBoardPage.tsx - Delivery operations
backend/app/services/delivery.py - Menu management
web/src/features/restaurant/restaurantApi.ts
API and commerce
- Order API
backend/app/api/v1/orders.py - Pricing and tax
backend/app/services/pricing.py - Order service
backend/app/services/orders.py - Stripe payments
backend/app/services/stripe_service.py - Webhook inbox
backend/app/api/v1/webhooks.py - Payment worker
backend/app/workers/tasks.py - Commerce records
backend/app/models/commerce.py - Payment and event records
backend/app/models/payments.py - Storefront API
backend/app/api/v1/portal.py
Platform services
- Admin portal
backend/app/api/v1/admin.py - Tenant access
backend/app/api/deps.py - Tenant DB sessions
backend/app/db/session.py - Clerk identity
- Stripe Connect
- Email delivery
backend/app/services/email.py - API application
backend/app/main.py
Other components
- Customer
Connections 33
- Customer → Storefront: browses
- Storefront → Storefront API: loads menu
- Customer → Cart: adds items
- Cart → Checkout: continues to
- Checkout → Order API: creates order
- Order API → Pricing and tax: reprices cart
backend/app/api/v1/orders.py - Order API → Order service: creates order
backend/app/api/v1/orders.py - Order API → Stripe payments: requests intent
backend/app/api/v1/orders.py - Stripe payments → Stripe Connect: creates charge
- Stripe Connect → Webhook inbox: sends event
- Webhook inbox → Payment and event records: persists event
backend/app/api/v1/webhooks.py - Webhook inbox → Payment worker: enqueues event
backend/app/api/v1/webhooks.py - Payment worker → Payment and event records: loads and updates
backend/app/workers/tasks.py - Payment worker → Tenant DB sessions: opens tenant session
backend/app/workers/tasks.py - Payment worker → Stripe payments: reads intent
backend/app/workers/tasks.py - Payment worker → Commerce records: advances order
backend/app/workers/tasks.py - Order tracking → Order API: polls status
- Commerce records → Kitchen board: paid order appears
- Restaurant API → Kitchen board: serves operations
- Restaurant API → Menu management: supports menu editing
- Restaurant API → Delivery operations: supports delivery
- Kitchen board → Delivery operations: hands off order
- Customer → Customer identity: signs in or checks out
- Customer identity → Clerk identity: authenticates customer
- Customer identity → Email delivery: supports account email
- API application → Storefront API: mounts API routes
backend/app/main.py - API application → Order API: mounts API routes
backend/app/main.py - API application → Webhook inbox: mounts API routes
- Order API → Tenant access: resolves request scope
backend/app/api/v1/orders.py - Tenant access → Tenant DB sessions: opens scoped sessions
backend/app/api/deps.py - Admin portal → Tenant access: uses admin access
backend/app/api/v1/admin.py - Admin portal → Stripe payments: manages Stripe setup
backend/app/api/v1/admin.py - Stripe payments → Payment and event records: records payment state