How clarencelanaria/laundrymatic works
LaundryMatic combines a laundry-shop admin dashboard, a customer app, and a scale-to-cloud weighing path. The principal shop workflow sends scale readings through Arduino and a Node.js bridge to Firebase, where the dashboard can use live weight to create and manage customer orders; the customer app supports registration, QR identification, tracking, and notifications. Dashboard subfeatures are documented but concentrated in one large web module. Some links below rely on README-level descriptions because web and hardware implementation excerpts were not provided.
Main entry points: login.jsx Customer access · dashboard.jsx Order dashboard · app.js Admin dashboard · index.jsx Session routing
Components 25
Scale ingestion
- Load cell
- Scale firmware
Arduino/DIGI_LWS/DIGI_LWS.ino - Serial bridge
laundrymatic-bridge/bridge.js
Shop administration
- Admin dashboard
laundrymatic/public/app.js - Admin pages
laundrymatic/public/dashboard.html - Admin authentication
laundrymatic/public/auth.js - Admin approvals
laundrymatic/public/superadmin.js
Customer app
- Customer access
LaundryMatic_Mobile/app/login.jsx - Customer registration
LaundryMatic_Mobile/app/register.jsx - Terms and privacy
LaundryMatic_Mobile/app/terms.jsx - Session routing
LaundryMatic_Mobile/app/index.jsx - Order dashboard
LaundryMatic_Mobile/app/dashboard.jsx - Customer QR
LaundryMatic_Mobile/app/showQR.jsx - Customer notifications
LaundryMatic_Mobile/app/notifications.jsx - Auth controls
LaundryMatic_Mobile/components/AuthButton.jsx - Auth fields
LaundryMatic_Mobile/components/AuthInput.jsx - Design tokens
LaundryMatic_Mobile/constants/colors.js - Mobile data access
LaundryMatic_Mobile/utils/firebase.js - Notification support
LaundryMatic_Mobile/utils/notifications.js - Remembered email
LaundryMatic_Mobile/utils/storage.js
Firebase services
- Firebase Auth and Realtime DB
Other components
- Shop staff
- Administrator
- Super admin
- Customer
Connections 32
- Load cell → Scale firmware: senses weight
README.md - Scale firmware → Serial bridge: sends serial data
README.md - Serial bridge → Firebase Auth and Realtime DB: uploads weight
README.md - Firebase Auth and Realtime DB → Admin dashboard: provides live weight
README.md - Administrator → Admin authentication: registers or logs in
README.md - Admin authentication → Firebase Auth and Realtime DB: uses authentication
README.md - Administrator → Admin dashboard: manages shop
README.md - Admin dashboard → Firebase Auth and Realtime DB: manages orders and records
README.md - Admin dashboard → Admin pages: presents dashboard
- Super admin → Admin approvals: reviews admins
README.md - Admin approvals → Firebase Auth and Realtime DB: approves or rejects
README.md - Customer → Customer access: signs in
LaundryMatic_Mobile/app/login.jsx - Customer → Customer registration: registers
LaundryMatic_Mobile/app/register.jsx - Customer registration → Firebase Auth and Realtime DB: creates account and profile
LaundryMatic_Mobile/app/register.jsx - Customer access → Remembered email: stores remembered email
LaundryMatic_Mobile/app/login.jsx - Customer access → Firebase Auth and Realtime DB: authenticates
LaundryMatic_Mobile/app/login.jsx - Session routing → Firebase Auth and Realtime DB: checks session and agreements
LaundryMatic_Mobile/app/index.jsx - Session routing → Order dashboard: routes verified customers
LaundryMatic_Mobile/app/index.jsx - Session routing → Terms and privacy: routes incomplete agreements
LaundryMatic_Mobile/app/index.jsx - Terms and privacy → Firebase Auth and Realtime DB: records acceptance
LaundryMatic_Mobile/app/terms.jsx - Order dashboard → Mobile data access: loads profile and orders
LaundryMatic_Mobile/app/dashboard.jsx - Mobile data access → Firebase Auth and Realtime DB: reads customer data
LaundryMatic_Mobile/utils/firebase.js - Order dashboard → Customer QR: shows customer QR
LaundryMatic_Mobile/app/dashboard.jsx - Order dashboard → Notification support: uses notification support
LaundryMatic_Mobile/app/dashboard.jsx - Notification support → Firebase Auth and Realtime DB: listens and saves tokens
LaundryMatic_Mobile/utils/notifications.js - Customer → Customer notifications: views updates
README.md - Customer notifications → Notification support: reads and marks notifications
LaundryMatic_Mobile/utils/notifications.js - Customer access → Auth controls: renders controls
LaundryMatic_Mobile/app/login.jsx - Customer access → Auth fields: renders fields
LaundryMatic_Mobile/app/login.jsx - Auth controls → Design tokens: uses tokens
LaundryMatic_Mobile/components/AuthButton.jsx - Auth fields → Design tokens: uses tokens
LaundryMatic_Mobile/components/AuthInput.jsx - Mobile data access → Firebase Auth and Realtime DB: reads and writes data
LaundryMatic_Mobile/utils/firebase.js