How vtechshop/dine-pos works
Dine POS is a multi-client restaurant point-of-sale and operations platform: staff and customers enter through the web/mobile POS or QR menu, requests reach the backend, and orders are persisted and acted on. Around that core, the repository includes kitchen, inventory, payments, reporting/AI, administration, and SaaS-management capabilities. The source index and excerpts support several key links; unsampled integrations are represented only as unverified dashed relationships, and no README was provided.
Main entry points: server.ts HTTP and sockets · orderRoutes.ts Order handling · superAdminRoutes.ts SaaS administration · Order.ts Order records
Components 23
Restaurant Clients
- Mobile POS
mobile/src/navigation/AppNavigator.tsx - Web POS
web/src/App.tsx - QR ordering
qr/src/App.tsx - Admin console
admin/src/App.tsx - Offline sync
mobile/src/sync/syncEngine.ts - Mobile API
mobile/src/services/api.ts - Hotel detail UI
web/src/pages/super-admin
Backend Runtime
- HTTP and sockets
backend/src/server.ts - Authentication
backend/src/middleware/auth.ts
Restaurant Operations
- Order handling
backend/src/routes/orderRoutes.ts - Order records
backend/src/models/Order.ts - Menu and catalog
backend/src/routes/catalogRoutes.ts - Stock operations
backend/src/utils/stockUtils.ts - Kitchen workflow
backend/src/routes/kitchenStationRoutes.ts - Payments
backend/src/services/payment/GatewayFactory.ts
Insights & AI
- Reports and analytics
backend/src/services/executiveDashboard.ts - Operational alerts
backend/src/services/alertEngine.ts - Forecasting
backend/src/services/forecastEngine.ts
Platform Services
- SaaS administration
backend/src/routes/superAdminRoutes.ts - Hotel configuration
backend/src/models/Hotel.ts - Redis services
backend/src/config/redis.ts
Other components
- Restaurant staff
- QR guest
Connections 23
- Restaurant staff → Mobile POS: uses
- Restaurant staff → Web POS: uses
- QR guest → QR ordering: scans and orders
qr/src/App.tsx - Mobile POS → Offline sync: queues work
- Offline sync → Mobile API: submits orders
mobile/src/sync/syncEngine.ts - Mobile API → HTTP and sockets: sends requests
- Web POS → HTTP and sockets: sends requests
- QR ordering → HTTP and sockets: sends requests
- Admin console → HTTP and sockets: sends requests
- HTTP and sockets → Order handling: mounts routes
backend/src/server.ts - HTTP and sockets → Authentication: configures middleware
- HTTP and sockets → Redis services: connects and closes
backend/src/server.ts - Order handling → Order records: reads and writes
backend/src/routes/orderRoutes.ts - Order handling → Stock operations: adjusts stock
backend/src/routes/orderRoutes.ts - HTTP and sockets → Menu and catalog: mounts routes
- HTTP and sockets → Kitchen workflow: mounts routes
backend/src/server.ts - Order handling → Payments: uses payment flow
- HTTP and sockets → SaaS administration: mounts routes
backend/src/server.ts - SaaS administration → Hotel configuration: manages hotels
backend/src/routes/superAdminRoutes.ts - Operational alerts → Order records: checks delays
backend/src/services/alertEngine.ts - Forecasting → Order records: uses snapshots
backend/src/services/forecastEngine.ts - HTTP and sockets → Reports and analytics: exposes analytics
- Hotel detail UI → SaaS administration: manages hotels