How roshanx0/restaurant-ordering-saas works
FoodOrder is a multi-tenant restaurant ordering SaaS. The principal flow is restaurant registration, admin review and account creation, restaurant menu setup, then customer menu browsing and order placement; restaurant staff manage incoming orders and reporting. Admin analytics, restaurant administration, settings, and real-time updates are additional product branches. The excerpts show routing, service calls, and Supabase operations; some feature-level links are based on the README because their implementations were not sampled.
Main entry points: App.tsx Application Routes · supabase.ts Supabase Client · Dashboard.tsx Restaurant Dashboard · adminService.ts Admin Service
Components 25
Public and Ordering
- Application Routes
src/App.tsx - Landing Page
src/pages/public/LandingPage.tsx - Restaurant Registration
src/pages/public/RegisterPage.tsx - Owner Login
src/pages/public/LoginPage.tsx - Customer Menu and Orders
src/pages/customer/CustomerMenu.tsx
Restaurant Operations
- Restaurant Dashboard
src/pages/restaurant/Dashboard.tsx - Menu Management
src/pages/restaurant/Menu.tsx - Order Management
src/pages/restaurant/Orders.tsx - Restaurant Overview
src/pages/restaurant/RestaurantHome.tsx - Reports
src/pages/restaurant/Reports.tsx - Restaurant Settings
src/pages/restaurant/RestaurantSettings.tsx
Platform Administration
- Admin Login
src/pages/admin/LoginPage.tsx - Admin Dashboard
src/pages/admin/Dashboard.tsx - Platform Overview
src/pages/admin/DashboardHome.tsx - Registration Review
src/pages/admin/PendingRequests.tsx - Restaurant Directory
src/pages/admin/AllRestaurants.tsx - Platform Analytics
src/pages/admin/Analytics.tsx
Data and Services
- Admin Service
src/services/adminService.ts - Restaurant Service
src/services/restaurantService.ts - Supabase Client
src/config/supabase.ts - App Configuration
src/config/config.ts - Shared Helpers
src/utils/helpers.ts - Platform Data Schema
database/setup.sql
Other components
- Restaurant / Customer
- Supabase Platform
Connections 37
- Restaurant / Customer → Application Routes: opens
src/App.tsx - Application Routes → Landing Page: routes to
src/App.tsx - Application Routes → Restaurant Registration: routes to
src/App.tsx - Application Routes → Owner Login: routes to
src/App.tsx - Application Routes → Restaurant Dashboard: routes to
src/App.tsx - Application Routes → Admin Login: routes to
src/App.tsx - Application Routes → Admin Dashboard: routes to
src/App.tsx - Application Routes → Customer Menu and Orders: routes to
src/App.tsx - Restaurant Dashboard → Restaurant Overview: routes to
src/pages/restaurant/Dashboard.tsx - Restaurant Dashboard → Menu Management: routes to
src/pages/restaurant/Dashboard.tsx - Restaurant Dashboard → Order Management: routes to
src/pages/restaurant/Dashboard.tsx - Restaurant Dashboard → Reports: routes to
src/pages/restaurant/Dashboard.tsx - Restaurant Dashboard → Restaurant Settings: routes to
src/pages/restaurant/Dashboard.tsx - Admin Dashboard → Platform Overview: routes to
src/pages/admin/Dashboard.tsx - Admin Dashboard → Registration Review: routes to
src/pages/admin/Dashboard.tsx - Admin Dashboard → Restaurant Directory: routes to
src/pages/admin/Dashboard.tsx - Admin Dashboard → Platform Analytics: routes to
src/pages/admin/Dashboard.tsx - Restaurant Registration → Supabase Client: submits registration
src/pages/public/RegisterPage.tsx - Owner Login → Supabase Client: authenticates
src/pages/public/LoginPage.tsx - Customer Menu and Orders → Restaurant Service: creates order
src/pages/customer/CustomerMenu.tsx - Menu Management → Restaurant Service: manages menu
src/pages/restaurant/Menu.tsx - Order Management → Restaurant Service: manages orders
src/pages/restaurant/Orders.tsx - Restaurant Overview → Restaurant Service: loads stats
src/pages/restaurant/RestaurantHome.tsx - Reports → Supabase Client: reads reports
src/pages/restaurant/Reports.tsx - Restaurant Settings → Supabase Client: updates settings
src/pages/restaurant/RestaurantSettings.tsx - Registration Review → Admin Service: reviews requests
src/pages/admin/PendingRequests.tsx - Restaurant Directory → Admin Service: manages status
src/pages/admin/AllRestaurants.tsx - Platform Overview → Admin Service: loads overview
src/pages/admin/DashboardHome.tsx - Admin Service → Supabase Client: queries and subscribes
src/services/adminService.ts - Restaurant Service → Supabase Client: queries and subscribes
src/services/restaurantService.ts - Admin Service → Shared Helpers: generates credentials
src/services/adminService.ts - Admin Service → Platform Data Schema: accesses platform records
src/services/adminService.ts - Restaurant Service → Platform Data Schema: accesses menus and orders
src/services/restaurantService.ts - Supabase Client → Supabase Platform: connects to
src/config/supabase.ts - Platform Data Schema → Supabase Platform: defines schema for
README.md - App Configuration → Supabase Client: provides credentials
src/config/supabase.ts - Landing Page → Restaurant Registration: links to sign-up
src/pages/public/LandingPage.tsx