How chaaniee/baiparts_inventory_pos_it14-l works
This is a browser-based inventory and point-of-sale application for managing parts across branches, with role-based access. The principal workflow is a signed-in staff member using a routed page to perform an inventory or sales task; the shared client sends requests to PHP endpoints, which read or update application data. The tree also shows purchasing, imports, reporting, low-stock alerts, user administration, and activity history. Several backend endpoints are unsampled, so their internal calls and data relationships are not asserted.
Main entry points: App.jsx Routes and layout · client.js HTTP client · AuthContext.jsx Session context · Dashboard.jsx Dashboard
Components 21
Web client
- Routes and layout
client/src/App.jsx - Session context
client/src/context/AuthContext.jsx - HTTP client
client/src/api/client.js - Dashboard
client/src/pages/Dashboard.jsx - Login
client/src/pages/Login.jsx
Inventory operations
- Parts
client/src/pages/Parts.jsx - Parts import
client/src/pages/Import.jsx - Stock movements
client/src/pages/StockMovements.jsx - Low-stock alerts
client/src/pages/LowStockAlerts.jsx
Sales and purchasing
- Point of sale
client/src/pages/PointOfSales.jsx - Sales history
client/src/pages/SalesHistory.jsx - Purchase orders
client/src/pages/PurchaseOrders.jsx - Suppliers
client/src/pages/Suppliers.jsx - Reports
client/src/pages/Reports.jsx
API and access
- User administration
client/src/pages/Users.jsx - Activity history
client/src/pages/ActivityLog.jsx - PHP API endpoints
api - Sign-in endpoint
api/auth/login.php - Access and role checks
api/helpers/auth.php - MySQL database
api/config/db.php
Other components
- Staff user
Connections 32
- Staff user → Routes and layout: uses
client/src/App.jsx - Routes and layout → Login: routes
client/src/App.jsx - Routes and layout → Dashboard: routes
client/src/App.jsx - Routes and layout → Parts: routes
client/src/App.jsx - Routes and layout → Parts import: routes
client/src/App.jsx - Routes and layout → Stock movements: routes
client/src/App.jsx - Routes and layout → Low-stock alerts: routes
client/src/App.jsx - Routes and layout → Point of sale: routes
client/src/App.jsx - Routes and layout → Sales history: routes
client/src/App.jsx - Routes and layout → Purchase orders: routes
client/src/App.jsx - Routes and layout → Suppliers: routes
client/src/App.jsx - Routes and layout → Reports: routes
client/src/App.jsx - Routes and layout → User administration: routes
client/src/App.jsx - Routes and layout → Activity history: routes
client/src/App.jsx - Session context → HTTP client: requests
client/src/context/AuthContext.jsx - Login → Session context: signs in
- Dashboard → HTTP client: requests
client/src/pages/Dashboard.jsx - Parts → HTTP client: requests
client/src/pages/Parts.jsx - Parts import → HTTP client: uploads
client/src/pages/Import.jsx - Stock movements → HTTP client: requests
client/src/pages/StockMovements.jsx - Low-stock alerts → HTTP client: requests
client/src/pages/LowStockAlerts.jsx - Point of sale → HTTP client: requests
client/src/pages/PointOfSales.jsx - Sales history → HTTP client: requests
client/src/pages/SalesHistory.jsx - Purchase orders → HTTP client: requests
client/src/pages/PurchaseOrders.jsx - Suppliers → HTTP client: requests
client/src/pages/Suppliers.jsx - Reports → HTTP client: requests
client/src/pages/Reports.jsx - User administration → HTTP client: requests
client/src/pages/Users.jsx - Activity history → HTTP client: requests
client/src/pages/ActivityLog.jsx - HTTP client → PHP API endpoints: sends HTTP
client/src/api/client.js - PHP API endpoints → Sign-in endpoint: includes
api/auth/login.php - Access and role checks → MySQL database: queries
api/helpers/auth.php - Sign-in endpoint → MySQL database: queries
api/auth/login.php