How usamadevops/bakery-point-of-sale works
This is a prototype desktop point-of-sale application: a cashier works through the Electron-rendered interface to manage products and categories, serve customers, record sales, and configure the store. The documented product areas are represented by the UI and API domain modules; the sampled backend shows transaction persistence and inventory decrement after paid sales. The source excerpts establish Electron startup, API mounting, and transaction-to-inventory calls, but do not show UI-to-API requests, so those links are dashed and marked unverified.
Main entry points: server.js HTTP API server · index.html POS screens · transactions.js Transactions API · inventory.js Inventory API
Components 18
Desktop interface
- POS screens
index.html - POS interactions
assets/js/pos.js - Product filter
assets/js/product-filter.js
API and operations
- Inventory API
api/inventory.js - Categories API
api/categories.js - Customers API
api/customers.js - Transactions API
api/transactions.js - Users and login
api/users.js - Store settings
api/settings.js
Local records
- Inventory records
undefined/POS/server/databases/inventory.db - Category records
undefined/POS/server/databases/categories.db - Customer records
undefined/POS/server/databases/customers.db - Transaction records
undefined/POS/server/databases/transactions.db - User records
undefined/POS/server/databases/users.db - Settings records
undefined/POS/server/databases/settings.db
Application runtime
- Electron startup
start.js - HTTP API server
server.js
Other components
- Cashier
Connections 19
- Cashier → POS screens: uses
README.md - POS screens → POS interactions: loads
- POS screens → Product filter: loads
- POS interactions → HTTP API server: sends requests
- Electron startup → HTTP API server: starts
start.js - Electron startup → POS screens: opens
start.js - HTTP API server → Inventory API: mounts
server.js - HTTP API server → Categories API: mounts
server.js - HTTP API server → Customers API: mounts
server.js - HTTP API server → Transactions API: mounts
server.js - HTTP API server → Users and login: mounts
server.js - HTTP API server → Store settings: mounts
server.js - Inventory API → Inventory records: reads and writes
api/inventory.js - Categories API → Category records: reads and writes
api/categories.js - Customers API → Customer records: reads and writes
api/customers.js - Transactions API → Transaction records: reads and writes
api/transactions.js - Users and login → User records: reads and writes
api/users.js - Store settings → Settings records: reads and writes
api/settings.js - Transactions API → Inventory API: decrements stock
api/transactions.js