How lebogang-g-masia/milky-shakes-drinks works
Milky Shakes Drinks is a patron ordering and payment app paired with a manager/kitchen operations portal. Patrons browse the menu, configure a saved drink-pack draft, authenticate, submit an order, pay, and track/print or receive a receipt. Managers handle live order operations, inventory/store settings, reporting, and audit records. The README documents these API capabilities, but the sampled API excerpt does not expose every handler or its persistence path, so those branches are represented without speculative internal call chains.
Main entry points: App.jsx Web application · OrderPlacement.jsx Order builder · app.js Store and admin API · LandingPage.jsx Menu browsing
Components 22
Patron experience
- Web application
packages/client/src/App.jsx - Route navigation
packages/client/src/router.jsx - Menu browsing
packages/client/src/LandingPage.jsx - Flavour guide
packages/client/src/FlavoursPage.jsx - Authentication
packages/client/src/AuthPage.jsx - Account signup
packages/client/src/SignUp.jsx - Saved order draft
packages/client/src/orderDraft.js - Order builder
packages/client/src/OrderPlacement.jsx - Order history
packages/client/src/PatronOrdersPage.jsx - Receipt printing
packages/client/src/ReceiptPrinter.jsx
Kitchen operations
- Manager dashboard
packages/client/src/ManagementDashboard.jsx
API services
- Order and payment API
packages/api/src/app.js - Receipt email
packages/api/src/emailService.js - Role access control
packages/api/src/middleware/rbac.js - Store and admin API
packages/api/src/app.js
Domain rules
- Pricing rules
packages/shared/src/constraints/rules.js - Reports and audit
packages/shared/src/schema/reporting.schema.js
Other components
- Patron
- Supabase Auth
- Stripe payments
- SMTP relay
- Supabase PostgreSQL
Connections 25
- Patron → Web application: opens
README.md - Web application → Route navigation: routes through
packages/client/src/App.jsx - Web application → Menu browsing: renders
packages/client/src/App.jsx - Web application → Authentication: renders
packages/client/src/App.jsx - Web application → Order builder: renders
packages/client/src/App.jsx - Web application → Flavour guide: renders
packages/client/src/App.jsx - Web application → Order history: renders
packages/client/src/App.jsx - Web application → Manager dashboard: renders
packages/client/src/App.jsx - Order builder → Saved order draft: saves and loads
packages/client/src/OrderPlacement.jsx - Authentication → Saved order draft: loads
packages/client/src/AuthPage.jsx - Menu browsing → Saved order draft: reads count
packages/client/src/LandingPage.jsx - Order builder → Pricing rules: calculates totals
packages/client/src/OrderPlacement.jsx - Order builder → Supabase PostgreSQL: reads menu and records payment
- Order builder → Order and payment API: submits orders
- Order and payment API → Stripe payments: verifies payment webhook
README.md - Order and payment API → Receipt email: sends confirmation
packages/api/src/app.js - Receipt email → SMTP relay: delivers email
README.md - Order history → Receipt printing: renders receipt
packages/client/src/PatronOrdersPage.jsx - Manager dashboard → Store and admin API: manages orders and store
- Store and admin API → Role access control: enforces roles
packages/api/src/app.js - Store and admin API → Reports and audit: uses report rules
packages/api/src/app.js - Store and admin API → Supabase PostgreSQL: reads and writes
- Account signup → Supabase Auth: registers accounts
- Authentication → Account signup: renders signup
packages/client/src/AuthPage.jsx - Menu browsing → Supabase PostgreSQL: reads flavour catalog