A complete interactive ordering menu system for the Shay Sukar tea shop, featuring a customer-facing menu and a real-time barista dashboard.
- Beautiful Design: Matches the original menu colors and fonts
- Cream/beige background (#F5E6D3)
- Dark teal sections (#1A4D5C)
- Arabic and English typography
- Interactive Ordering:
- Click any menu item to add to cart
- Shopping cart with quantity management
- Order summary with total
- Table number input
- Real-time Updates: Orders sent instantly to barista
- Persistent Cart: Cart saved in localStorage
- Responsive Design: Works on mobile and desktop
- Real-time Order Management:
- Live order updates via WebSocket
- Sound notifications for new orders
- Order status tracking (Pending → Preparing → Ready → Completed)
- Statistics Dashboard:
- Pending orders count
- Orders in preparation
- Ready orders
- Completed orders
- Total revenue
- Order Actions:
- Start preparation
- Mark as ready
- Complete order
- Cancel order
- RESTful API:
POST /api/orders- Create new orderGET /api/orders- Get all ordersGET /api/orders/pending- Get pending ordersPATCH /api/orders/:id- Update order statusDELETE /api/orders/:id- Delete orderGET /api/stats- Get statistics
- WebSocket Support: Real-time bidirectional communication
- Order Management: Full CRUD operations
- Status Tracking: 5-stage order lifecycle
-
Install Node.js (v14 or higher)
-
Install dependencies:
npm install- Start the server:
npm start- Open the customer menu:
http://localhost:3000/
- Open the barista dashboard:
http://localhost:3000/barista
- شاي قزاز - 13 SR
- شاي كبير - 8 SR
- شاي صغير - 6 SR
- شاي ابريق - 20 SR
- كرك قزاز - 14 SR
- كرك ابريق - 30 SR
- كرك كبير - 9 SR
- كرك صغير - 7 SR
- تيشرز مجريند - 19 SR
- حبة تمر - 12 SR
- حلا أوريسو - 15 SR
- جوبكز شوكو - 7 SR
- كراشي - 8 SR
- قهوة كبير - 14 SR
- قهوة صغير - 10 SR
- دلة سعودي - 25 SR
- مسحن - 18 SR
- خليبة - 18 SR
- ورق عنب - 15 SR
- سمبوسة - 12 SR
- Customer clicks menu items to add to cart
- Customer enters table number and submits order
- Order sent to server via REST API
- Server broadcasts order to all connected barista dashboards via WebSocket
- Barista receives notification and sees order in dashboard
- Barista updates order status:
- Pending → Preparing → Ready → Completed
- Status updates broadcast to all connected clients in real-time
- Frontend: HTML5, CSS3, JavaScript (Vanilla)
- Backend: Node.js, Express
- Real-time: WebSocket (ws library)
- Fonts: Google Fonts (Tajawal, Dancing Script)
- Storage: localStorage (client-side), in-memory (server-side)
For development with auto-restart:
npm run dev.
├── interactive_menu.html # Customer-facing menu
├── barista_dashboard.html # Barista order management
├── barista_server.js # Backend server
├── package.json # Node.js dependencies
├── Menu.jpeg # Original menu design
├── Menu_vector.svg # Vectorized menu (skeleton)
└── README.md # This file
- Database integration (MongoDB, PostgreSQL)
- User authentication for barista
- Order history and analytics
- Print receipt functionality
- Multi-language support
- Payment integration
- QR code table ordering
- Customer order tracking
MIT
"Tea is a ritual, an art that nourishes the soul."