How samchanpanha/smart-restaurant-management-system works
Restora is a restaurant operations system centered on a shared ticket and shift state. Staff sign in to a role-scoped terminal workspace, manage floor service and tickets, and share resulting state with kitchen, inventory, and owner views. Guests can use an open QR menu, while an optional server provides tenant-scoped persistence and live synchronization; AI and Telegram are additional capabilities. The graph preserves documented product branches, but some screen-level interactions are inferred only from the README rather than sampled source.
Main entry points: App.jsx Role-based workspace · store.jsx Client state and actions · index.js API and live sync · reducer.js Domain reducer and models
Components 24
Workspace and identity
- Role-based workspace
src/App.jsx - Accounts and roles
src/lib/auth.jsx - Workspace tabs
src/components/TabStrip.jsx
Restaurant service
- Floor and reservations
src/screens/Floor/index.jsx - Tickets and payments
src/screens/Tickets/index.jsx - Kitchen display
src/screens/KitchenScreen.jsx - Guest QR menu
src/screens/GuestScreen.jsx - Telegram mini app
src/screens/MiniApp/sections/MiniAppTableController.jsx
Management and insights
- Menu catalog
src/screens/Catalog/index.jsx - Inventory and stock
src/screens/InventoryScreen.jsx - Purchases and suppliers
src/screens/PurchasesScreen.jsx - Reports and costing
src/screens/Reports/index.jsx - Operations dashboard
src/screens/Dashboard/index.jsx - Settings and documents
src/screens/Settings/index.jsx - AI assistant
src/screens/Assistant/index.jsx - Telegram notifications
server/notify.js
Shared state and platform
- Client state and actions
src/lib/store.jsx - Domain reducer and models
src/lib/reducer.js - API and live sync
server/index.js - Tenant state and catalog
server/db.js
Other components
- Restaurant staff
- Guests
- AI provider
- Telegram platform
Connections 35
- Restaurant staff → Role-based workspace: uses
README.md - Role-based workspace → Accounts and roles: authenticates
src/App.jsx - Role-based workspace → Workspace tabs: shows
src/App.jsx - Role-based workspace → Floor and reservations: routes to
src/App.jsx - Role-based workspace → Tickets and payments: routes to
src/App.jsx - Role-based workspace → Kitchen display: routes to
src/App.jsx - Role-based workspace → Operations dashboard: routes to
src/App.jsx - Role-based workspace → Menu catalog: routes to
src/App.jsx - Role-based workspace → Inventory and stock: routes to
src/App.jsx - Role-based workspace → Purchases and suppliers: routes to
src/App.jsx - Role-based workspace → Reports and costing: routes to
src/App.jsx - Role-based workspace → Settings and documents: routes to
src/App.jsx - Role-based workspace → AI assistant: routes to
src/App.jsx - Guests → Guest QR menu: browses
README.md - Guests → Telegram mini app: uses
README.md - Floor and reservations → Client state and actions: dispatches actions
src/screens/Floor/index.jsx - Tickets and payments → Client state and actions: updates tickets
- Client state and actions → Domain reducer and models: applies actions
src/lib/store.jsx - Domain reducer and models → Client state and actions: returns state
src/lib/store.jsx - Kitchen display → Client state and actions: reads shift state
README.md - Inventory and stock → Client state and actions: shares shift state
README.md - Reports and costing → Client state and actions: reads shift state
README.md - Operations dashboard → Client state and actions: reads shift state
- Settings and documents → Client state and actions: saves settings
src/screens/Settings/index.jsx - Menu catalog → API and live sync: reads catalog
README.md - Guest QR menu → API and live sync: reads menu
README.md - Telegram mini app → API and live sync: claims tables
server/index.js - Client state and actions → API and live sync: syncs actions
README.md - API and live sync → Domain reducer and models: replays actions
server/index.js - API and live sync → Tenant state and catalog: loads and commits
server/index.js - API and live sync → Client state and actions: broadcasts updates
README.md - AI assistant → AI provider: requests insights
README.md - API and live sync → Telegram notifications: dispatches notifications
server/index.js - Telegram notifications → Telegram platform: sends messages
README.md - Purchases and suppliers → Client state and actions: records purchases