How dharavathpavan/theankapurdhaba works
This is a restaurant commerce and operations app for The Ankapur Dhaba, with customer ordering, kitchen and waiter workflows, delivery operations, and administrative management. The customer journey centers on browsing the menu, building a cart, checking out, then tracking and reviewing an order; staff-facing routes cover fulfillment and business operations. The graph preserves these distinct product areas and shared API, identity, and state layers. Source excerpts are selective and there is no README, so several route-to-API relationships are documented only as unverified.
Main entry points: api.ts Application API · routeTree.gen.ts Route Registry · index.tsx Menu Discovery · checkout.tsx Checkout
Components 27
Customer Ordering
- Menu Discovery
src/routes/index.tsx - Menu Catalog
src/data/menu.ts - Menu Scheduling
src/lib/menu-availability.ts - Shopping Cart
src/stores/cart.ts - Checkout
src/routes/checkout.tsx - Order Tracking
src/routes/track.$orderId.tsx - Order Review
src/routes/review.$orderId.tsx - Address Selection
src/components/site/AddressBottomSheet.tsx - Delivery Location
src/lib/delivery-location.ts - Maps Services
src/lib/google-maps.ts
Restaurant Operations
- Kitchen Fulfillment
src/routes/kitchen.tsx - Waiter Service
src/routes/waiter.tsx - Restaurant Delivery
src/routes/restaurant.delivery.tsx - Receipt Printing
src/lib/printer/manager.ts
Delivery Operations
- Rider Workflows
src/routes/delivery.tsx - Delivery Views
src/components/delivery
Administration
- Business Admin
src/routes/admin.users.tsx - Admin Modules
src/routes
Shared App Services
- Identity State
src/stores/auth.ts - Application API
src/services/api.ts - Realtime Updates
src/hooks/use-order-realtime.ts - Active Order State
src/stores/active-order.ts - Route Registry
src/routeTree.gen.ts
Other components
- Customer
- API Backend
- Google Maps
- Printer Device
Connections 33
- Customer → Menu Discovery: browses
src/routes/index.tsx - Menu Discovery → Menu Catalog: shows catalog
src/routes/index.tsx - Menu Discovery → Menu Scheduling: checks availability
src/routes/index.tsx - Customer → Shopping Cart: adds items
- Shopping Cart → Menu Catalog: uses item data
src/stores/cart.ts - Customer → Checkout: submits order
- Checkout → Application API: creates order
- Customer → Address Selection: sets address
- Address Selection → Delivery Location: resolves delivery
src/components/site/AddressBottomSheet.tsx - Delivery Location → Maps Services: uses maps
src/lib/delivery-location.ts - Customer → Order Tracking: tracks order
- Order Tracking → Application API: loads order
- Customer → Order Review: rates order
- Order Review → Application API: loads order
src/routes/review.$orderId.tsx - Kitchen Fulfillment → Application API: manages tickets
- Waiter Service → Application API: manages service
- Restaurant Delivery → Application API: manages dispatch
- Receipt Printing → Printer Device: sends print job
src/lib/printer/manager.ts - Rider Workflows → Delivery Views: uses views
- Rider Workflows → Application API: updates deliveries
- Business Admin → Admin Modules: provides operations
- Admin Modules → Application API: manages business data
src/routes/index.tsx - Application API → API Backend: sends API requests
src/services/api.ts - Application API → Identity State: reads session
src/services/api.ts - Identity State → API Backend: restores session
src/stores/auth.ts - Realtime Updates → Application API: subscribes updates
src/hooks/use-order-realtime.ts - Active Order State → Application API: loads order
src/stores/active-order.ts - Route Registry → Menu Discovery: registers route
src/routeTree.gen.ts - Route Registry → Checkout: registers route
src/routeTree.gen.ts - Route Registry → Kitchen Fulfillment: registers route
src/routeTree.gen.ts - Route Registry → Waiter Service: registers route
src/routeTree.gen.ts - Route Registry → Order Tracking: registers route
src/routeTree.gen.ts - Maps Services → Google Maps: requests map data
src/lib/google-maps.ts