How med-mohamedb/betterstore works
Better Store is a mobile-friendly store-management and point-of-sale app: staff navigate its web app to manage products, stock, sales, and purchasing, with business data persisted locally. The workflow spans checkout and receipts as well as inventory and reporting; supporting capabilities include backup, scanning, language settings, promotions, and native printing. The tree and excerpts establish the app shell, product persistence, and printer bridge; several other modules are represented by their listed paths, but their internal wiring was not sampled.
Main entry points: app.js App shell · MainActivity.kt Android host · printer.js Receipt printing · products.js Products
Components 26
App experience
- App shell
www/app.js - Onboarding
www/onboarding.js - Language
www/i18n.js
Store operations
- Point of sale
www/pos.js - Products
www/products.js - Inventory
www/inventory.js - Sales
www/sales.js - Customers
www/customers.js - Suppliers
www/suppliers.js - Purchase orders
www/purchaseorders.js
Data and insights
- Accounting
www/accounting.js - Reports
www/reports.js - Statistics
www/stats.js - Local data
www/db.js - Backup and restore
www/backup.js
Device and support
- Barcode scanning
www/scanner.js - Settings
www/settings.js - Promotions
www/shopPromo.js - AdMob
www/adMob.js - Ad notifications
www/adNotify.js - Self update
www/selfUpdate.js - Receipt printing
www/printer.js
Android services
- Android host
android/app/src/main/java/com/mohaab/storeapp/MainActivity.kt - Thermal printer bridge
android/app/src/main/java/com/mohaab/storeapp/ThermalPrinterPlugin.kt
Other components
- Store staff
- Firebase messaging
Connections 13
- Store staff → App shell: uses
- App shell → Onboarding: shows
- App shell → Language: initializes
- App shell → Settings: reads
- App shell → Point of sale: routes to
- App shell → Products: routes to
- App shell → Sales: routes to
- Products → Local data: reads and writes
- Android host → App shell: hosts web app
- Android host → Thermal printer bridge: registers
- Receipt printing → Settings: reads config
- Receipt printing → Thermal printer bridge: sends print jobs
- Android host → Firebase messaging: subscribes to topics