How veerajrao/dinedesk-pos-management-system works
This is a restaurant point-of-sale application with a React frontend and Express/MongoDB backend. Staff authenticate, navigate operational views, manage tables and orders, and create bills with Razorpay payment support. The graph follows the frontend route and API-client boundaries into backend routes, controllers, and persistence; several unsampled UI details are represented at their exact directory paths, with uncertain component wiring omitted or marked dashed.
Main entry points: index.js HTTP endpoint client · App.jsx App routes · tokenVerification.js Token verification · app.js Express server
Components 25
Staff interface
- App routes
PoS-frontend/src/App.jsx - Login and registration
PoS-frontend/src/components/auth - Dashboard views
PoS-frontend/src/pages/Dashboard.jsx - Orders, tables, home
PoS-frontend/src/pages - Menu and billing
PoS-frontend/src/pages/Menu.jsx - Invoice display
PoS-frontend/src/components/invoice/Invoice.jsx
Client state and API
- Redux state
PoS-frontend/src/redux/slices - HTTP endpoint client
PoS-frontend/src/https/index.js
Backend API
- Express server
PoS-backend/app.js
Identity and access
- User routes
PoS-backend/routes/userRoute.js - User operations
PoS-backend/controllers/userController.js - Token verification
PoS-backend/middleware/tokenVerification.js - User records
PoS-backend/models/userModel.js
Orders and payments
- Order routes
PoS-backend/routes/orderRoutes.js - Order operations
PoS-backend/controllers/orderControllers.js - Order records
PoS-backend/models/orderModel.js - Table routes
PoS-backend/routes/tableRoute.js - Table operations
PoS-backend/controllers/tableControllers.js - Table records
PoS-backend/models/tableModel.js - Payment routes
PoS-backend/routes/paymentRoute.js - Payment operations
PoS-backend/controllers/paymentController.js - Payment records
PoS-backend/models/paymentModel.js
Other components
- Restaurant staff
- Razorpay
- MongoDB
Connections 39
- Restaurant staff → App routes: uses
PoS-frontend/src/App.jsx - App routes → Orders, tables, home: routes to
PoS-frontend/src/App.jsx - App routes → Dashboard views: routes to
PoS-frontend/src/App.jsx - App routes → Login and registration: routes to
- App routes → Menu and billing: routes to
- Login and registration → HTTP endpoint client: requests
PoS-frontend/src/components/auth/Login.jsx - Login and registration → Redux state: updates
PoS-frontend/src/components/auth/Login.jsx - Dashboard views → Orders, tables, home: renders views
PoS-frontend/src/pages/index.js - Menu and billing → Redux state: uses cart/customer
- Menu and billing → Invoice display: renders
- Menu and billing → HTTP endpoint client: submits payment
- App routes → HTTP endpoint client: loads user
- HTTP endpoint client → User routes: HTTP requests
PoS-frontend/src/https/index.js - HTTP endpoint client → Order routes: HTTP requests
PoS-frontend/src/https/index.js - HTTP endpoint client → Table routes: HTTP requests
PoS-frontend/src/https/index.js - HTTP endpoint client → Payment routes: HTTP requests
PoS-frontend/src/https/index.js - Express server → User routes: mounts
PoS-backend/app.js - Express server → Order routes: mounts
PoS-backend/app.js - Express server → Table routes: mounts
PoS-backend/app.js - Express server → Payment routes: mounts
PoS-backend/app.js - User routes → User operations: dispatches
PoS-backend/routes/userRoute.js - User routes → Token verification: checks access
PoS-backend/routes/userRoute.js - User operations → User records: reads/writes
PoS-backend/controllers/userController.js - Token verification → User records: looks up
PoS-backend/middleware/tokenVerification.js - Order routes → Order operations: dispatches
PoS-backend/routes/orderRoutes.js - Order routes → Token verification: checks access
PoS-backend/routes/orderRoutes.js - Order operations → Order records: reads/writes
PoS-backend/controllers/orderControllers.js - Table routes → Table operations: dispatches
PoS-backend/routes/tableRoute.js - Table routes → Token verification: checks access
PoS-backend/routes/tableRoute.js - Table operations → Table records: reads/writes
PoS-backend/controllers/tableControllers.js - Payment routes → Payment operations: dispatches
PoS-backend/routes/paymentRoute.js - Payment routes → Token verification: checks access
PoS-backend/routes/paymentRoute.js - Payment operations → Razorpay: creates orders
PoS-backend/controllers/paymentController.js - Razorpay → Payment operations: sends webhook
- Payment operations → Payment records: saves captured payment
PoS-backend/controllers/paymentController.js - User operations → MongoDB: persists user data
- Order records → MongoDB: stored in
- Table records → MongoDB: stored in
- Payment records → MongoDB: stored in