How dezmshibe/chowza works
Chowza is a WhatsApp-first food-ordering and restaurant-management platform. Customers browse restaurant menus, build a cart, place orders, and track them; businesses manage orders and storefront operations, while administrators oversee the platform. The React app routes into customer, business, and admin experiences, with Supabase providing shared application data and serverless functions covering order, payment, tracking, and notification capabilities. Source excerpts establish frontend composition and some Supabase use; most serverless implementations were not sampled, so their links are left unverified.
Main entry points: App.tsx Route dispatcher · BusinessApp.tsx Business portal · CustomerApp.tsx Customer experience · supabase.ts Supabase client
Components 28
App entry
- Route dispatcher
src/App.tsx - Shared app state
src/context/AppContext.tsx
Customer ordering
- Customer experience
src/components/CustomerApp.tsx - Restaurant storefront
src/components/CustomerStore.tsx - Cart and checkout
src/components/CartBottomSheet.tsx - Public business store
src/components/PublicBusinessStore.tsx - Public checkout
src/components/PublicCheckout.tsx - Order confirmation
src/components/OrderConfirmation.tsx - Order tracking
src/components/OrderTracker.tsx
Business operations
- Business portal
src/components/BusinessApp.tsx - Order management
src/components/BusinessOrdersManager.tsx - Menu management
src/components/BusinessMenuManager.tsx - Business profile
src/components/BusinessProfileManager.tsx - Promotions
src/components/BusinessPromotionsManager.tsx - Sales analytics
src/components/AnalyticsView.tsx - Administration
src/components/AdminApp.tsx
Data and services
- Supabase client
src/lib/supabase.ts - Supabase data services
- Order creation API
supabase/functions/create-order/index.ts - Order tracking API
supabase/functions/track-order/index.ts - Payment endpoints
supabase/functions/create-payfast-payment/index.ts - Payment engine
supabase/functions/_shared/payment-engine.ts - Push notifications
supabase/functions/send-push-notification/index.ts - WhatsApp connection
supabase/functions/whatsapp-connect/index.ts
Other components
- Customer
- Restaurant staff
- Platform admin
- PayFast and Yoco
Connections 30
- Route dispatcher → Shared app state: wraps
src/App.tsx - Route dispatcher → Customer experience: routes to
src/App.tsx - Route dispatcher → Business portal: routes to
src/App.tsx - Route dispatcher → Administration: routes to
src/App.tsx - Customer → Route dispatcher: opens
- Restaurant staff → Route dispatcher: opens
- Platform admin → Route dispatcher: opens
- Customer experience → Restaurant storefront: renders
src/components/CustomerApp.tsx - Customer experience → Cart and checkout: renders
src/components/CustomerApp.tsx - Customer experience → Order tracking: renders
src/components/CustomerApp.tsx - Shared app state → Supabase client: reads
src/context/AppContext.tsx - Shared app state → Supabase data services: loads data
src/context/AppContext.tsx - Public business store → Supabase client: reads
src/components/PublicBusinessStore.tsx - Public business store → Public checkout: renders
src/components/PublicBusinessStore.tsx - Public business store → Order confirmation: renders
src/components/PublicBusinessStore.tsx - Business portal → Order management: dispatches to
- Business portal → Menu management: dispatches to
- Business portal → Business profile: dispatches to
- Business portal → Supabase client: uses
src/components/BusinessApp.tsx - Administration → Supabase client: uses
src/components/AdminApp.tsx - Restaurant staff → Promotions: manages
- Restaurant staff → Sales analytics: reviews
- Cart and checkout → Order creation API: submits order
- Public checkout → Order creation API: submits order
- Order tracking → Order tracking API: requests status
- Order creation API → Supabase data services: writes order
- Payment endpoints → Payment engine: uses
- Payment endpoints → PayFast and Yoco: creates payment
- Push notifications → Supabase data services: uses data
- WhatsApp connection → PayFast and Yoco: integrates