How imakbarsami/mini-pos works
MINI-POS is a React point-of-sale and inventory application backed by a Laravel REST API. Staff sign in, manage products and customers, build orders in the POS, then complete orders; completion checks and deducts stock and records accounting entries. The UI also exposes dashboard metrics, order search/details, and invoices. The graph includes the documented capabilities whose frontend or backend implementation was not excerpted; those links are documented at the API boundary. Some route and page details are inferred only from the README and source index, so their edges cite that evidence.
Main entry points: App.jsx App routes · api.js API client · api.php API routes · database.php Application database
Components 22
React client
- App routes
frontend/src/App.jsx - Sign-in
frontend/src/pages/Login.jsx - Auth state
frontend/src/features/authSlice.js - POS checkout
frontend/src/pages/POS.jsx - Order management
frontend/src/pages/Orders.jsx - Invoice view
frontend/src/pages/Invoice.jsx - Product management
frontend/src/pages/Prouduct.jsx - Customer management
frontend/src/components/Customer.jsx - Dashboard view
frontend/src/pages/Dashboard.jsx - API client
frontend/src/services/api.js
Laravel API
- API routes
backend/routes/api.php - Authentication API
backend/app/Http/Controllers/AuthController.php
Sales domain
- Order processing
backend/app/Http/Controllers/OrderController.php - Product API
backend/app/Http/Controllers/ProductController.php - Customer API
backend/app/Http/Controllers/CustomerController.php - Order records
backend/app/Models/Order.php - Product records
backend/app/Models/Product.php - Customer records
backend/app/Models/Customer.php
Accounting
- Dashboard metrics
backend/app/Http/Controllers/DashboardController.php - Journal lines
backend/app/Models/JournalEntryLine.php
Other components
- Staff user
- Application database
backend/config/database.php
Connections 35
- Staff user → App routes: uses
- App routes → Sign-in: routes
frontend/src/App.jsx - App routes → POS checkout: routes
frontend/src/App.jsx - App routes → Order management: routes
frontend/src/App.jsx - App routes → Invoice view: routes
frontend/src/App.jsx - App routes → Product management: routes
frontend/src/App.jsx - App routes → Customer management: routes
frontend/src/App.jsx - App routes → Dashboard view: routes
frontend/src/App.jsx - Sign-in → Auth state: updates
frontend/src/pages/Login.jsx - Sign-in → API client: authenticates via
frontend/src/pages/Login.jsx - POS checkout → API client: submits orders
- Order management → API client: manages orders
- Invoice view → API client: loads details
frontend/src/pages/Invoice.jsx - Product management → API client: manages products
frontend/src/pages/Prouduct.jsx - Customer management → API client: manages customers
frontend/src/components/Customer.jsx - Dashboard view → API client: loads metrics
frontend/src/pages/Dashboard.jsx - API client → API routes: calls REST API
- API routes → Authentication API: dispatches
backend/routes/api.php - API routes → Order processing: dispatches
backend/routes/api.php - API routes → Product API: dispatches
backend/routes/api.php - API routes → Customer API: dispatches
backend/routes/api.php - API routes → Dashboard metrics: dispatches
backend/routes/api.php - Authentication API → Application database: reads users
backend/app/Http/Controllers/AuthController.php - Order processing → Order records: creates and queries
backend/app/Http/Controllers/OrderController.php - Order processing → Product records: checks and updates stock
backend/app/Http/Controllers/OrderController.php - Order processing → Application database: persists order changes
backend/app/Http/Controllers/OrderController.php - Product API → Product records: manages products
backend/app/Http/Controllers/ProductController.php - Customer API → Customer records: manages customers
backend/app/Http/Controllers/CustomerController.php - Dashboard metrics → Journal lines: aggregates accounts
backend/app/Http/Controllers/DashboardController.php - Dashboard metrics → Order records: counts orders
backend/app/Http/Controllers/DashboardController.php - Order processing → Journal lines: writes accounting entries
backend/app/Http/Controllers/OrderController.php - Order records → Application database: stores orders
- Product records → Application database: stores inventory
- Customer records → Application database: stores customers
- Journal lines → Application database: stores ledger lines