How terragodnone17-dev/prototypemco-cs303- works
WRSMS is an offline, administrator-operated water-station management application. Its principal workflow is administrator sign-in, then recording counter or delivery orders and managing the related customer, stock, payment, and container records, followed by delivery reconciliation and daily cash closing. The README also describes dashboards, expenses, audit logs, and backups. The sampled excerpts establish the UI controller’s database use, authentication’s database and hashing use, and the SQLite-backed persistence layer; finer feature-level calls are not visible in the excerpts.
Main entry points: App.js Application controller · db.js Database layer · auth.js Admin authentication · crypto-util.js Password hashing
Components 16
Station operations
- Application controller
js/App.js - Dashboard
js/App.js - Sales and orders
js/App.js - Customer accounts
js/App.js - Stock and containers
js/App.js - Delivery trips
js/App.js
Cash and oversight
- Expenses and closing
js/App.js - Audit and backup
js/App.js
Access security
- Admin authentication
js/auth.js - Password hashing
js/crypto-util.js
Local persistence
- Database layer
js/db.js - SQLite engine
js/sql-wasm.js - SQLite WebAssembly
js/sql-wasm.wasm - Relational schema
schema.sql
Other components
- Administrator
- Browser workstation
Connections 16
- Administrator → Application controller: uses
README.md - Application controller → Admin authentication: restores session
js/App.js - Application controller → Database layer: reads and writes
js/App.js - Admin authentication → Database layer: reads and updates
js/auth.js - Admin authentication → Password hashing: hashes passwords
js/auth.js - Application controller → Dashboard: renders
js/App.js - Application controller → Sales and orders: manages
js/App.js - Application controller → Customer accounts: manages
js/App.js - Application controller → Stock and containers: manages
js/App.js - Application controller → Delivery trips: reconciles
js/App.js - Application controller → Expenses and closing: manages
js/App.js - Application controller → Audit and backup: records
js/App.js - Database layer → SQLite engine: initializes
js/db.js - Database layer → Relational schema: defines tables
- Browser workstation → Application controller: runs
- Database layer → Browser workstation: persists locally
js/db.js