How k1mhoangg/dahttt_warehouse works
This is a warehouse-management application for product catalog, supplier ordering, warehouse stock operations, sales and returns, and reporting. Users sign in, then role-gated React pages support those tasks through a REST API backed by Flask and SQLAlchemy models. The documented operational flows include FEFO batch selection for exports and sales, and receiving supplier goods into inventory. The graph captures documented frontend-to-API capabilities; several page and route implementations were not sampled, so those links rely on README evidence rather than inspected calls.
Main entry points: App.jsx Routes and access · app/__init__.py Flask app setup · models/__init__.py SQLAlchemy models · auth.py Authentication
Components 21
Web application
- Routes and access
frontend/src/App.jsx - Sign in
frontend/src/pages/Login.jsx - Product catalog
frontend/src/pages/products/ProductList.jsx - Supplier orders
frontend/src/pages/orders/SupplierOrders.jsx - Warehouse tasks
frontend/src/pages/warehouse - Sales and returns
frontend/src/pages/sales - Reports
frontend/src/pages/reports/Reports.jsx - Auth state
frontend/src/store/authStore.js
API capabilities
- Authentication
backend/app/routes/auth.py - Product API
backend/app/routes/products.py - Orders API
backend/app/routes/orders.py - Warehouse API
backend/app/routes/warehouse.py - Inventory API
backend/app/routes/warehouse_inventory.py - Sales API
backend/app/routes/sales.py - Reports API
backend/app/routes/reports.py
Inventory domain
- SQLAlchemy models
backend/app/models/__init__.py - MySQL database
Application foundation
- Role authorization
backend/app/utils/auth.py - Response and ID helpers
backend/app/utils/helpers.py - Flask app setup
backend/app/__init__.py
Other components
- Staff
Connections 31
- Staff → Routes and access: uses
frontend/src/App.jsx - Routes and access → Sign in: routes to
frontend/src/App.jsx - Routes and access → Product catalog: routes to
frontend/src/App.jsx - Routes and access → Supplier orders: routes to
frontend/src/App.jsx - Routes and access → Warehouse tasks: routes to
frontend/src/App.jsx - Routes and access → Sales and returns: routes to
frontend/src/App.jsx - Routes and access → Reports: routes to
frontend/src/App.jsx - Routes and access → Auth state: checks access
frontend/src/App.jsx - Sign in → Authentication: signs in
- Product catalog → Product API: manages products
- Supplier orders → Orders API: manages orders
- Warehouse tasks → Warehouse API: performs operations
- Warehouse tasks → Inventory API: manages inventory
- Sales and returns → Sales API: records sales
- Sales and returns → Sales API: submits returns
- Reports → Reports API: requests reports
- Flask app setup → Authentication: registers
backend/app/__init__.py - Flask app setup → Product API: registers
backend/app/__init__.py - Flask app setup → Orders API: registers
backend/app/__init__.py - Flask app setup → Warehouse API: registers
backend/app/__init__.py - Flask app setup → Inventory API: registers
backend/app/__init__.py - Flask app setup → Sales API: registers
backend/app/__init__.py - Flask app setup → Reports API: registers
backend/app/__init__.py - Authentication → SQLAlchemy models: queries users
backend/app/routes/auth.py - Reports API → SQLAlchemy models: queries records
backend/app/routes/reports.py - Warehouse API → SQLAlchemy models: updates batches
backend/app/routes/warehouse.py - Inventory API → SQLAlchemy models: queries records
backend/app/routes/warehouse_inventory.py - Authentication → Role authorization: checks roles
- Warehouse API → Response and ID helpers: uses responses
backend/app/routes/warehouse.py - Reports API → Response and ID helpers: uses responses
backend/app/routes/reports.py - SQLAlchemy models → MySQL database: persists through ORM