How nimbalkar3735/inventory-management-system works
This is a full-stack inventory management application. Users register or sign in, then manage categories and products, search and filter inventory, adjust quantities, and monitor low-stock items; the protected dashboard summarizes inventory. The graph reflects the documented React routes and REST capabilities, plus sampled controller/service/repository calls. Page-level frontend requests and dashboard metric calculations were not sampled, so those details are represented only at the API-client boundary. MySQL persistence and JWT security are documented capabilities.
Main entry points: App.jsx Route application · api.js API client · AuthController.java Auth API · ProductService.java Product service
Components 24
Web application
- Route application
Inventory-Management-System/frontend/src/App.jsx - Dashboard
Inventory-Management-System/frontend/src/pages/Dashboard.jsx - API client
Inventory-Management-System/frontend/src/services/api.js
Identity and access
- Auth state
Inventory-Management-System/frontend/src/context/AuthContext.jsx - Login and register
Inventory-Management-System/frontend/src/pages/Login.jsx - Route guard
Inventory-Management-System/frontend/src/components/ProtectedRoute.jsx - Auth API
Inventory-Management-System/backend/src/main/java/com/yugant/backend/controller/AuthController.java - User service
Inventory-Management-System/backend/src/main/java/com/yugant/backend/service/UserService.java - JWT service
Inventory-Management-System/backend/src/main/java/com/yugant/backend/security/JwtService.java - Security configuration
Inventory-Management-System/backend/src/main/java/com/yugant/backend/config/SecurityConfig.java - JWT filter
Inventory-Management-System/backend/src/main/java/com/yugant/backend/security/JwtAuthenticationFilter.java
Inventory operations
- Product management
Inventory-Management-System/frontend/src/pages/Products.jsx - Product editor
Inventory-Management-System/frontend/src/pages/ProductForm.jsx - Category management
Inventory-Management-System/frontend/src/pages/Categories.jsx - Low-stock view
Inventory-Management-System/frontend/src/pages/LowStock.jsx - Product API
Inventory-Management-System/backend/src/main/java/com/yugant/backend/controller/ProductController.java - Product service
Inventory-Management-System/backend/src/main/java/com/yugant/backend/service/ProductService.java - Category API
Inventory-Management-System/backend/src/main/java/com/yugant/backend/controller/CategoryController.java - Category service
Inventory-Management-System/backend/src/main/java/com/yugant/backend/service/CategoryService.java
Persistence
- Product repository
Inventory-Management-System/backend/src/main/java/com/yugant/backend/repository/ProductRepository.java - Category repository
Inventory-Management-System/backend/src/main/java/com/yugant/backend/repository/CategoryRepository.java - User repository
Inventory-Management-System/backend/src/main/java/com/yugant/backend/repository/UserRepository.java - MySQL database
Other components
- User
Connections 32
- User → Route application: uses
- Route application → Login and register: routes
- Route application → Route guard: guards routes
- Route application → Dashboard: routes
- Route application → Product management: routes
- Route application → Product editor: routes
- Route application → Category management: routes
- Route application → Low-stock view: routes
- Route application → Auth state: provides auth
- Login and register → Auth state: uses auth
- Auth state → API client: requests
- Dashboard → API client: requests
- Product management → API client: requests
- Product editor → API client: requests
- Category management → API client: requests
- Low-stock view → API client: requests
- API client → Auth API: HTTP API
- API client → Product API: HTTP API
- API client → Category API: HTTP API
- Auth API → User service: calls
- Auth API → JWT service: issues tokens
- User service → User repository: reads and writes
- Security configuration → JWT filter: configures
- JWT filter → JWT service: validates tokens
- Product API → Product service: calls
- Product service → Product repository: searches and writes
- Product service → Category repository: loads category
- Category API → Category service: calls
- Category service → Category repository: reads and writes
- Product repository → MySQL database: persists
- Category repository → MySQL database: persists
- User repository → MySQL database: persists