How abourne18/smartdine works
SmartDine is a restaurant ordering and administration application. Customers scan a table QR code, browse menu categories, build a cart, submit or add to an order, and track or cancel it. Staff log in to manage tables and menu availability, monitor orders and update their statuses, and review daily revenue reports. The sampled frontend modules call a single Express API, which queries MySQL. The README is empty, and several modules are only partially excerpted, so the graph omits unverified links and does not imply details beyond the shown calls.
Main entry points: server.js Express API · pelanggan.js Menu and ordering · index.js QR table scan · admin-menu.js Tables and menu
Components 11
Customer ordering
- QR table scan
frontend/js/index.js - Menu and ordering
frontend/js/pelanggan.js
Staff administration
- Staff login
frontend/js/login.js - Dashboard and alerts
frontend/js/admin-core.js - Tables and menu
frontend/js/admin-menu.js - Orders and history
frontend/js/admin-orders.js - Reports and QR
frontend/js/admin-report.js
API and persistence
- Express API
backend/server.js - MySQL restaurant data
database/restoran.sql
Other components
- Restaurant customer
- Restaurant staff
Connections 17
- Restaurant customer → QR table scan: scans QR
- QR table scan → Express API: checks tables
frontend/js/index.js - QR table scan → Menu and ordering: opens ordering
frontend/js/index.js - Restaurant customer → Menu and ordering: places orders
- Menu and ordering → Express API: loads menu and categories
frontend/js/pelanggan.js - Menu and ordering → Express API: submits and updates orders
frontend/js/pelanggan.js - Restaurant staff → Staff login: logs in
- Staff login → Express API: authenticates
frontend/js/login.js - Restaurant staff → Dashboard and alerts: uses dashboard
- Dashboard and alerts → Express API: polls active orders
frontend/js/admin-core.js - Tables and menu → Express API: manages tables and menu
frontend/js/admin-menu.js - Tables and menu → Express API: loads categories
frontend/js/admin-menu.js - Orders and history → Express API: loads orders and stats
frontend/js/admin-orders.js - Orders and history → Express API: updates order status
frontend/js/admin-orders.js - Reports and QR → Express API: loads daily reports
frontend/js/admin-report.js - Reports and QR → Express API: manages categories and QR
frontend/js/admin-report.js - Express API → MySQL restaurant data: queries restaurant data
backend/server.js