How rismanasdk/aplikasi-kasir works
Aplikasi-Kasir is a multi-branch, multi-role POS for restaurants and shops. The primary workflow runs from product browsing and checkout through transaction creation, payment/status updates, and operational stock handling. The repository also includes role-specific operations, financial reporting, security monitoring, and a separate AI/ML service for business intelligence. The graph combines sampled call sites with README-documented capabilities; unsampled subsystem links are documented rather than inferred from filenames.
Main entry points: databarangControllers.js Product Catalog · componentUtama Customer POS · transaksi Transaction Lifecycle · TransaksiRoutes.js Transaction Routes
Components 22
Sales & Payments
- Customer POS
frontend/src/pages/componentUtama - Checkout UI
frontend/src/pages/transaksi/proses-transaksi - Transaction Routes
backend/routes/TransaksiRoutes.js - Transaction Lifecycle
backend/controllers/transaksi - Transaction Records
backend/models/datatransaksi.js - Midtrans
Store Operations
- Product Catalog
backend/controllers/databarangControllers.js - Product Records
backend/models/databarang.js - Firebase RTDB
- Chef Production
backend/controllers/chef/chefcontroller.js - Stock Management
frontend/src/admin/stok-barang
Finance & BI
- Financial Reports
backend/controllers/admin/laporancontroller.js - Capital Records
backend/models/modalutama.js - BI Dashboard
frontend/src/super-admin/bi - AI Proxy
backend/services/aiService.js
Identity & Security
- Authentication
backend/routes/authRoutes.js - Authorization
backend/middleware/authorization.js - Security Monitoring
backend/controllers/security/securityController.js
AI Service
- AI API
ai-service/routers/bi.py - BI Analysis
ai-service/services/bi_service.py - ML Pipeline
ai-service/ml/feature_engineering.py
Other components
- Customer
Connections 21
- Customer → Customer POS: browses
- Customer POS → Checkout UI: starts checkout
- Checkout UI → Transaction Routes: submits order
- Transaction Routes → Transaction Lifecycle: routes requests
backend/routes/TransaksiRoutes.js - Transaction Lifecycle → Transaction Records: records transactions
- Transaction Lifecycle → Midtrans: creates payment
- Midtrans → Transaction Routes: sends callback
backend/routes/TransaksiRoutes.js - Customer POS → Product Catalog: loads products
- Product Catalog → Product Records: reads and writes
backend/controllers/databarangControllers.js - Product Catalog → Firebase RTDB: syncs stock
backend/controllers/databarangControllers.js - Chef Production → Product Records: updates products
backend/controllers/chef/chefcontroller.js - Stock Management → Product Catalog: manages stock
- Financial Reports → Transaction Records: aggregates sales
backend/controllers/admin/laporancontroller.js - Financial Reports → Capital Records: reads capital
backend/controllers/admin/laporancontroller.js - BI Dashboard → AI Proxy: requests analysis
- AI Proxy → AI API: forwards requests
- AI API → BI Analysis: dispatches analysis
ai-service/routers/bi.py - BI Analysis → ML Pipeline: uses features
- Customer → Authentication: registers or logs in
- Authentication → Authorization: checks permissions
- Authorization → Security Monitoring: protects endpoints