How enricoalvaro/velopos works
This is a browser-based reservation, POS, and inventory management system backed by an Express API and MySQL. Staff use the web interface to manage reservations and sales, maintain general and batch-based vegetable stock, and review reports; Owner accounts also manage users. The README documents FEFO batch allocation, opened-batch expiry handling, waste records, and stock/expiry alerts. The API and database schema are represented at their exact repository paths; unsampled implementation details are not expanded into speculative internal flows.
Main entry points: app.js Management interface · database.sql MySQL database · index.js Reservations · widgets.js Sales and calendar widgets
Components 16
Web client
- Management interface
public/app.js - Sales and calendar widgets
public/widgets.js
Business operations
- Authentication
api/index.js - Reservations
api/index.js - POS sales
api/index.js - General inventory
api/index.js - Reports
api/index.js - User management
api/index.js
Vegetable inventory
- Vegetable catalog
api/index.js - Delivery batches
api/index.js - FEFO usage
api/index.js - Waste records
api/index.js - Stock and expiry alerts
api/index.js - Movement history
api/index.js
API and persistence
- MySQL database
database/database.sql
Other components
- Staff / Owner
Connections 26
- Staff / Owner → Management interface: uses
README.md - Management interface → Authentication: requests auth
public/app.js - Management interface → Reservations: requests reservations
public/app.js - Management interface → POS sales: requests sales
public/app.js - Management interface → General inventory: requests inventory
public/app.js - Management interface → Vegetable catalog: requests vegetables
public/app.js - Management interface → Delivery batches: records deliveries
public/app.js - Management interface → FEFO usage: records usage
public/app.js - Management interface → Waste records: records waste
public/app.js - Management interface → Movement history: loads history
public/app.js - Management interface → Reports: loads reports
- Management interface → User management: loads users
public/app.js - Sales and calendar widgets → POS sales: fetches sales
public/widgets.js - Sales and calendar widgets → Reservations: fetches bookings
public/widgets.js - Authentication → MySQL database: reads and writes
api/index.js - Reservations → MySQL database: reads and writes
api/index.js - POS sales → MySQL database: reads and writes
api/index.js - General inventory → MySQL database: reads and writes
api/index.js - Reports → MySQL database: queries records
api/index.js - User management → MySQL database: reads and writes
api/index.js - Vegetable catalog → MySQL database: reads and writes
README.md - Delivery batches → MySQL database: stores batches
api/index.js - FEFO usage → MySQL database: deducts batches
README.md - Waste records → MySQL database: records waste
README.md - Stock and expiry alerts → MySQL database: checks stock and expiry
README.md - Movement history → MySQL database: reads movements
api/index.js