How eyuashu06/coffee_house works
Artisanal Reserve is a bilingual food-and-coffee ordering application: customers browse the menu, build a cart, authenticate, place orders and pay; account and manager screens support order tracking and operations. The backend also provides an assistant, reservations, reporting and payment reconciliation. The graph combines sampled frontend calls with source-index references and README capabilities; several backend subsystems are represented at directory level because their implementation files were not sampled. Dashed links indicate relationships not confirmed in the excerpts.
Main entry points: api.ts API client · views.py REST API · models.py Orders and lifecycle · page.tsx Storefront
Components 24
Customer experience
- Storefront
frontend/src/app/page.tsx - Cart drawer
frontend/src/components/CartDrawer.tsx - Authentication UI
frontend/src/components/AuthModal.tsx - Account page
frontend/src/app/account/page.tsx - Manager dashboard
frontend/src/app/manager/page.tsx - Auth context
frontend/src/context/AuthContext.tsx - API client
frontend/src/lib/api.ts
Commerce backend
- Accounts and profiles
backend/apps/accounts - Menu catalog
backend/apps/menu/models.py - Orders and lifecycle
backend/apps/orders/models.py - REST API
backend/api/views.py
Payments and operations
- Payment processing
backend/apps/payments/views.py - Chapa gateway
backend/apps/payments/gateway.py - Reporting
backend/apps/reports - Order expiry
backend/apps/orders/expiry.py - Payment reconciliation
backend/apps/payments/management/commands/reconcile_payments.py
Assistant
- Assistant chat
frontend/src/components/AssistantChat.tsx - Assistant API
backend/api/rag_engine.py - Assistant engine
backend/apps/assistant/engine.py - Grounded retrieval
backend/apps/assistant/retriever.py - Assistant ordering
backend/apps/assistant/ordering.py - Reservations
backend/apps/assistant/reservations.py
Other components
- Customer
- Chapa service
Connections 29
- Customer → Storefront: browses
frontend/src/app/page.tsx - Storefront → Cart drawer: opens
frontend/src/app/page.tsx - Storefront → API client: requests data
frontend/src/app/page.tsx - Storefront → Assistant chat: opens chat
frontend/src/app/page.tsx - Cart drawer → API client: requests
frontend/src/components/CartDrawer.tsx - Authentication UI → Auth context: authenticates
frontend/src/components/AuthModal.tsx - Auth context → API client: calls
frontend/src/context/AuthContext.tsx - Account page → API client: requests
frontend/src/app/account/page.tsx - Manager dashboard → API client: requests
frontend/src/app/manager/page.tsx - API client → REST API: calls API
- REST API → Accounts and profiles: uses
backend/api/views.py - REST API → Orders and lifecycle: uses
backend/api/views.py - REST API → Payment processing: uses
backend/api/views.py - REST API → Reservations: delegates
backend/api/views.py - Orders and lifecycle → Accounts and profiles: references
backend/apps/orders/models.py - Orders and lifecycle → Menu catalog: references
backend/apps/orders/models.py - Payment processing → Chapa gateway: calls
backend/apps/payments/views.py - Payment processing → Orders and lifecycle: uses
backend/apps/payments/views.py - Chapa gateway → Chapa service: charges
README.md - Manager dashboard → Reporting: requests reports
frontend/src/app/manager/page.tsx - Order expiry → Chapa gateway: checks payment
README.md - Payment reconciliation → Payment processing: reconciles
README.md - Assistant API → Assistant engine: delegates
backend/api/rag_engine.py - Assistant API → Grounded retrieval: retrieves
backend/api/rag_engine.py - Assistant engine → Grounded retrieval: retrieves
backend/apps/assistant/engine.py - Assistant engine → Assistant ordering: delegates
backend/apps/assistant/engine.py - Grounded retrieval → Menu catalog: reads catalog
backend/apps/assistant/retriever.py - Grounded retrieval → Orders and lifecycle: reads orders
backend/apps/assistant/retriever.py - Assistant chat → Assistant API: sends queries