How bhavika-007/restopss works
This is a restaurant operations and booking platform: customers discover restaurants, reserve tables or join a waitlist, while staff manage seating, orders, kitchen work, billing, and restaurant setup. The graph emphasizes reservation/allocation and floor-plan workflows; the tree also shows menu, staff, ordering, kitchen, and cashier capabilities. Source excerpts support the core reservation, allocation, floor-plan, and realtime links; unsampled feature paths are represented at their exact tree paths, with uncertain wiring omitted.
Main entry points: server.js HTTP and socket server · allocationService.js Table allocation · reservationController.js Reservation handling · reservationService.js Reservation matching
Components 33
Web application
- Role-based web app
frontend/src/App.jsx - Customer booking
frontend/src/pages/Booking.jsx - Host seating
frontend/src/pages/HostFloor.jsx - Manager workspace
frontend/src/pages/ManagerDashboard.jsx - Floor plan editor
frontend/src/pages/ManagerFloorPlan.jsx - Floor grid
frontend/src/components/FloorPlanGrid/FloorPlanGrid.jsx - API client
frontend/src/api.js - Realtime client
frontend/src/context/SocketContext.jsx
API and access
- HTTP and socket server
backend/server.js - Authentication and roles
backend/middleware/auth.js - Socket events
backend/services/socketService.js
Booking and seating
- Reservation handling
backend/controllers/reservationController.js - Reservation matching
backend/services/reservationService.js - Waitlist handling
backend/controllers/allocationController.js - Table allocation
backend/services/allocationService.js
Restaurant operations
- Floor layout handling
backend/controllers/floorLayoutController.js - Order handling
backend/controllers/orderController.js - Customer orders
backend/controllers/customerOrderController.js - Menu management
backend/controllers/menuController.js - Kitchen operations
backend/routes/kitchenRoutes.js - Billing
backend/routes/billingRoutes.js - Restaurant management
backend/controllers/restaurantController.js - Staff management
backend/routes/staffRoutes.js - Table management
backend/controllers/tableController.js
Domain state
- Reservations
backend/models/Reservation.js - Tables
backend/models/Table.js - Restaurants
backend/models/Restaurant.js - Waiting queue
backend/models/WaitingQueue.js - Orders
backend/models/Order.js - Menu items
backend/models/MenuItem.js - Floor elements
backend/models/FloorElement.js
Other components
- Customer
- Restaurant staff
Connections 43
- Customer → Role-based web app: uses
- Restaurant staff → Role-based web app: uses
- Role-based web app → Customer booking: routes to
frontend/src/App.jsx - Customer booking → API client: requests
- Host seating → API client: requests
- Manager workspace → Floor plan editor: opens
frontend/src/App.jsx - Floor plan editor → Floor grid: renders
frontend/src/pages/ManagerFloorPlan.jsx - Floor plan editor → API client: requests layout
- API client → HTTP and socket server: HTTP requests
- HTTP and socket server → Reservation handling: routes reservations
backend/server.js - HTTP and socket server → Waitlist handling: routes allocation
backend/server.js - HTTP and socket server → Floor layout handling: routes floor layout
backend/server.js - HTTP and socket server → Authentication and roles: protects routes
- Reservation handling → Reservation matching: finds combinations
backend/controllers/reservationController.js - Reservation handling → Table allocation: rematches queue
backend/controllers/reservationController.js - Waitlist handling → Table allocation: allocates tables
backend/controllers/allocationController.js - Table allocation → Reservation matching: checks combinations
backend/services/allocationService.js - Reservation handling → Reservations: reads and writes
backend/controllers/reservationController.js - Reservation matching → Reservations: checks overlap
backend/services/reservationService.js - Reservation matching → Tables: reads tables
backend/services/reservationService.js - Reservation matching → Restaurants: reads capacity
backend/services/reservationService.js - Table allocation → Tables: reads and updates
backend/services/allocationService.js - Table allocation → Waiting queue: reads and updates
backend/services/allocationService.js - Table allocation → Restaurants: reads duration
backend/services/allocationService.js - Reservation handling → Socket events: emits events
backend/controllers/reservationController.js - Waitlist handling → Socket events: emits events
backend/controllers/allocationController.js - HTTP and socket server → Socket events: initializes
backend/server.js - Realtime client → Socket events: joins rooms
- HTTP and socket server → Order handling: routes orders
backend/server.js - HTTP and socket server → Customer orders: routes customer orders
backend/server.js - Order handling → Orders: reads and writes
backend/controllers/orderController.js - Customer orders → Orders: reads and writes
backend/controllers/customerOrderController.js - HTTP and socket server → Menu management: routes menu
backend/server.js - Menu management → Menu items: manages items
- HTTP and socket server → Kitchen operations: routes kitchen
backend/server.js - HTTP and socket server → Billing: routes billing
backend/server.js - HTTP and socket server → Restaurant management: routes restaurants
backend/server.js - Restaurant management → Restaurants: manages records
backend/controllers/restaurantController.js - HTTP and socket server → Staff management: routes staff
backend/server.js - HTTP and socket server → Table management: routes tables
backend/server.js - Table management → Tables: manages tables
backend/controllers/tableController.js - Floor layout handling → Tables: manages layout tables
backend/controllers/floorLayoutController.js - Floor layout handling → Floor elements: manages elements
backend/controllers/floorLayoutController.js