How mabdalladev/inventory-mangement-system works
This is a React/Laravel inventory and invoicing application. Users sign in, navigate protected screens, manage products and stock attributes, customers, invoices, and users, while the frontend communicates with a REST API. The graph preserves the major README capabilities and distinct product, customer, invoice, and administration stages. Backend route/controller and selected model relationships are supported by the source index; unverified frontend-to-backend wiring is shown as dashed.
Main entry points: App.js React application · api.php API routes · apiService.js REST client · Color.php Color and size records
Components 24
Frontend experience
- React application
frontend/src/App.js - Sign-in screens
frontend/src/components/auth - Warehouse screens
frontend/src/components/warehouse - Catalog settings
frontend/src/components/settings - Customer screens
frontend/src/components/customers - Invoice screens
frontend/src/components/invoices - Dashboard
frontend/src/components/home - Order calculations
frontend/src/hooks/useOrderDetails.js - REST client
frontend/src/services/apiService.js
Inventory catalog
- Product API
backend/app/Http/Controllers/ProductController.php - Color API
backend/app/Http/Controllers/ColorController.php - Size API
backend/app/Http/Controllers/SizeController.php
Customer invoicing
- Invoice API
backend/app/Http/Controllers/InvoiceController.php - Customer API
backend/app/Http/Controllers/ClientController.php
API and identity
- API routes
backend/routes/api.php - Auth routes
backend/routes/api/auth.php - Authentication API
backend/app/Http/Controllers/AuthenticationController.php
Domain persistence
- Product records
backend/app/Models/Product.php - Color and size records
backend/app/Models/Color.php - Invoice records
backend/app/Models/invoiceInfo.php - Customer records
backend/app/Models/Client.php - User records
backend/app/Models/User.php
Other components
- Business user
- MySQL database
Connections 35
- Business user → React application: uses
frontend/src/App.js - React application → Sign-in screens: routes to
frontend/src/App.js - React application → Warehouse screens: routes to
frontend/src/App.js - React application → Catalog settings: routes to
frontend/src/App.js - React application → Customer screens: routes to
frontend/src/App.js - React application → Invoice screens: routes to
frontend/src/App.js - React application → Dashboard: routes to
frontend/src/App.js - Invoice screens → Order calculations: uses
frontend/src/hooks/useOrderDetails.js - Sign-in screens → REST client: requests
- Warehouse screens → REST client: requests
- Catalog settings → REST client: requests
- Customer screens → REST client: requests
- Invoice screens → REST client: requests
- Dashboard → REST client: requests
- REST client → API routes: sends API requests
- API routes → Product API: routes to
backend/routes/api.php - API routes → Color API: routes to
backend/routes/api.php - API routes → Size API: routes to
backend/routes/api.php - API routes → Invoice API: routes to
backend/routes/api.php - API routes → Customer API: routes to
backend/routes/api.php - API routes → Auth routes: loads
backend/routes/api.php - Auth routes → Authentication API: routes to
backend/routes/api/auth.php - Product API → Product records: queries
backend/app/Http/Controllers/ProductController.php - Product API → Color and size records: queries
- Color API → Color and size records: queries
backend/app/Http/Controllers/ColorController.php - Size API → Color and size records: queries
backend/app/Http/Controllers/SizeController.php - Invoice API → Customer records: saves client
backend/app/Http/Controllers/InvoiceController.php - Invoice API → Invoice records: stores invoice
backend/app/Http/Controllers/InvoiceController.php - Customer API → Customer records: manages
backend/app/Http/Controllers/ClientController.php - Authentication API → User records: authenticates
backend/app/Http/Controllers/AuthenticationController.php - Product records → MySQL database: persists in
- Color and size records → MySQL database: persists in
- Invoice records → MySQL database: persists in
- Customer records → MySQL database: persists in
- User records → MySQL database: persists in