How saurabh1e/open-pos works
This is a deprecated Angular point-of-sale frontend. Its central workflow is selecting a shop, billing products into a cart, and checking out an order; surrounding capabilities cover inventory, stock, reporting, staff, and shop configuration. The graph uses the routes and sampled service interactions where shown. Several feature implementations were not excerpted, so their internal calls are omitted rather than inferred.
Main entry points: app.routes.ts Application routes · billing.component.ts Product billing · checkout.component.ts Checkout · users.service.ts User service
Components 21
POS application
- Application routes
src/app/app.routes.ts - Login
src/app/login/login.component.ts - Authentication guard
src/services/auth-gaurd.service.ts
Sales workflow
- Shop selection
src/app/dashboard/shops/shops.component.ts - Product billing
src/app/billing/billing.component.ts - Cart state and totals
src/services/cart.service.ts - Checkout
src/app/billing/checkout/checkout.component.ts
Store operations
- Inventory management
src/app/inventory - Stock management
src/app/stock-management - Sales and stock reports
src/app/reporting - Staff management
src/app/staff/staff.component.ts - Shop and printer settings
src/app/dashboard/printer-config/printer-config.component.ts
Domain services
- Products and catalog
src/services/items.service.ts - Shops and synchronization
src/services/shop.service.ts - Order service
src/services/orders.service.ts - Customer service
src/services/customer.service.ts - User service
src/services/users.service.ts - Authentication state
src/services/auth.service.ts - IndexedDB
src/services/indexdb.service.ts
Other components
- Operator
- POS API
Connections 31
- Operator → Application routes: opens
src/app/app.routes.ts - Application routes → Login: routes to
src/app/app.routes.ts - Application routes → Product billing: routes to
src/app/app.routes.ts - Application routes → Inventory management: routes to
src/app/app.routes.ts - Application routes → Stock management: routes to
src/app/app.routes.ts - Application routes → Sales and stock reports: routes to
src/app/app.routes.ts - Application routes → Staff management: routes to
src/app/app.routes.ts - Application routes → Shop selection: defaults to
src/app/app.routes.ts - Application routes → Authentication guard: guards routes
src/app/app.routes.ts - Authentication guard → User service: checks login
src/services/auth-gaurd.service.ts - Login → User service: authenticates
src/app/login/login.component.ts - User service → Authentication state: observes auth
src/services/users.service.ts - User service → Shops and synchronization: queries shops
src/services/users.service.ts - Authentication state → IndexedDB: reads and writes
src/services/auth.service.ts - Shop selection → IndexedDB: uses local data
src/app/dashboard/shops/shops.component.ts - Product billing → IndexedDB: loads cart and products
src/app/billing/billing.component.ts - Product billing → Products and catalog: queries products
src/app/billing/billing.component.ts - Product billing → Shops and synchronization: sets active shop
src/app/billing/billing.component.ts - Product billing → Cart state and totals: manages cart
src/app/billing/billing.component.ts - Product billing → Checkout: opens checkout
src/app/billing/billing.component.ts - Checkout → Order service: submits orders
src/app/billing/checkout/checkout.component.ts - Checkout → Customer service: uses customer data
src/app/billing/checkout/checkout.component.ts - Checkout → Shops and synchronization: uses shop data
src/app/billing/checkout/checkout.component.ts - Checkout → Cart state and totals: reads cart
src/app/billing/checkout/checkout.component.ts - Products and catalog → POS API: requests catalog
src/services/items.service.ts - Order service → POS API: requests orders
src/services/orders.service.ts - Customer service → POS API: requests customers
src/services/customer.service.ts - User service → POS API: requests users
src/services/users.service.ts - Shops and synchronization → POS API: requests shop data
src/services/shop.service.ts - Products and catalog → IndexedDB: uses local data
src/services/items.service.ts - Shops and synchronization → IndexedDB: syncs local data
src/services/shop.service.ts