How sudipjangam/tasty-bite-harbor works
This is a React/Supabase restaurant-management platform, with hotel-oriented room and guest features as well. The main user journey enters through the app and its routed, permission-aware interface, then uses operational modules for orders, menus, POS, and kitchen fulfillment; inventory, reservations, CRM, staffing, and analytics support that work. Supabase provides the documented backend, with edge functions for selected AI, inventory, and messaging tasks. Links among unsampled feature modules are limited to capabilities and integrations stated in the README; the excerpts do not establish their detailed call flow.
Main entry points: Orders Order lifecycle · App.tsx App providers · useAuth.tsx Authentication · main.tsx Application entry
Components 22
Application Shell
- Application entry
src/main.tsx - App providers
src/App.tsx - Routes and guards
src/components/Auth/AppRoutes.tsx - Shared UI components
src/components/ui
Restaurant Operations
- Order lifecycle
src/components/Orders - Point of sale
src/components/Orders/POS - Menu management
src/components/Menu - Kitchen display
src/components/Kitchen - Delivery channel sync
src/components/Aggregators
Business Management
- Inventory management
src/components/Inventory - Reservations
src/components/Reservations - Rooms and guests
src/components/Rooms - Customer management
src/components/CRM - Staff management
src/components/Staff
Insights and AI
- Analytics and reports
src/components/Analytics - AI assistant
supabase/functions/chat-with-gemini/index.ts
Platform Services
- Authentication
src/hooks/useAuth.tsx - Administration and access
src/components/Admin - Supabase backend
src/integrations/supabase/client.ts - Serverless functions
supabase/functions - Email and WhatsApp
supabase/functions/send-whatsapp-unified/index.ts
Other components
- Restaurant users
Connections 24
- Restaurant users → Application entry: uses
- Application entry → App providers: loads
src/main.tsx - App providers → Routes and guards: renders
src/App.tsx - App providers → Authentication: provides
src/App.tsx - Routes and guards → Authentication: guards routes
src/components/Auth/AppRoutes.tsx - Restaurant users → Order lifecycle: manages orders
- Restaurant users → Menu management: manages menu
- Restaurant users → Point of sale: takes payments
- Order lifecycle → Kitchen display: kitchen integration
- Restaurant users → Inventory management: tracks stock
- Restaurant users → Reservations: manages bookings
- Restaurant users → Rooms and guests: manages rooms
- Restaurant users → Customer management: manages customers
- Restaurant users → Staff management: manages staff
- Restaurant users → Analytics and reports: views insights
- Analytics and reports → AI assistant: AI insights
- Restaurant users → Administration and access: administers access
- Authentication → Supabase backend: loads profile
src/hooks/useAuth.tsx - Order lifecycle → Supabase backend: persists operations
- Inventory management → Serverless functions: stock deduction
- Serverless functions → AI assistant: hosts AI chat
- Reservations → Email and WhatsApp: sends confirmations
- Order lifecycle → Email and WhatsApp: sends bills
- Restaurant users → Delivery channel sync: syncs delivery orders