How shein1101/malatang works
This repository is a skeletal hot-pot restaurant ordering and administration website. Its intended customer journey is menu browsing, bowl customization, cart review, and pickup-time checkout; it also has account/history pages and admin screens for menus, orders, and stock. The sampled pages mostly contain placeholders, so only documented links and visible includes are shown. The README provides no additional capability details, and the SQL files are represented as schema rather than evidence of unshown application behavior.
Main entry points: header.php Shared header · footer.php Shared footer · menu.php Menu browsing · checkout.php Pickup checkout
Components 20
Customer experience
- Menu browsing
public/menu.php - Bowl customization
public/customize.php - Cart review
public/cart.php - Pickup checkout
public/checkout.php - Login
public/login.php - Order history
public/history.php
Restaurant administration
- Menu management
admin/menus.php - Order management
admin/orders.php - Stock controls
admin/stock.php
API and persistence
- Menu API
api/menus.php - Orders API
api/orders.php - Database ping
api/ping.php - DB connection
includes/db.php - JSON helpers
includes/api.php - MySQL database
- SQL schema
database/schema.sql
Shared page layer
- Shared header
includes/header.php - Shared footer
includes/footer.php
Other components
- Customer
- Restaurant operator
Connections 36
- Customer → Menu browsing: browses
public/menu.php - Menu browsing → Bowl customization: links to
public/menu.php - Customer → Cart review: opens
- Customer → Pickup checkout: checks out
public/checkout.php - Pickup checkout → Orders API: POSTs order
public/checkout.php - Customer → Login: uses
public/login.php - Customer → Order history: views
public/history.php - Restaurant operator → Menu management: manages menus
admin/menus.php - Restaurant operator → Order management: manages orders
admin/orders.php - Restaurant operator → Stock controls: manages stock
admin/stock.php - Menu API → DB connection: loads connection
api/menus.php - Orders API → DB connection: loads connection
api/orders.php - Database ping → DB connection: loads connection
api/ping.php - Database ping → JSON helpers: uses JSON helpers
api/ping.php - Database ping → MySQL database: queries menu count
api/ping.php - DB connection → MySQL database: connects to
includes/db.php - Menu API → MySQL database: may access menus
- Orders API → MySQL database: may access orders
- Menu browsing → Shared header: includes
public/menu.php - Menu browsing → Shared footer: includes
public/menu.php - Bowl customization → Shared header: includes
public/customize.php - Bowl customization → Shared footer: includes
public/customize.php - Cart review → Shared header: includes
public/cart.php - Cart review → Shared footer: includes
public/cart.php - Pickup checkout → Shared header: includes
public/checkout.php - Pickup checkout → Shared footer: includes
public/checkout.php - Login → Shared header: includes
public/login.php - Login → Shared footer: includes
public/login.php - Order history → Shared header: includes
public/history.php - Order history → Shared footer: includes
public/history.php - Menu management → Shared header: includes
admin/menus.php - Menu management → Shared footer: includes
admin/menus.php - Order management → Shared header: includes
admin/orders.php - Order management → Shared footer: includes
admin/orders.php - Stock controls → Shared header: includes
admin/stock.php - Stock controls → Shared footer: includes
admin/stock.php