How preet018/bakery-inventory-management-system works
This repository implements a bakery storefront and back-office inventory system, with a React frontend and Spring Boot API. The principal workflow is customers browsing products, managing a cart, and checking out; separate back-office workflows manage orders, catalog items, stock, suppliers, and user accounts. The graph shows frontend routing and the sampled service calls, plus backend controller-to-service relationships visible in excerpts. Many domain services and API connections are unsampled, so those links are omitted rather than inferred.
Main entry points: App.jsx Application Router · productService.js Product API Client · InventoryManagerDashboard.jsx Manager Overview · authService.js Auth API Client
Components 23
Storefront
- Application Router
bakery-inventory-frontend/src/App.jsx - Product Catalog
bakery-inventory-frontend/src/pages/public/ProductsPage.jsx - Product Details
bakery-inventory-frontend/src/pages/public/ProductDetailPage.jsx - Cart
bakery-inventory-frontend/src/pages/customer/CartPage.jsx - Checkout
bakery-inventory-frontend/src/pages/customer/CheckoutPage.jsx - Order History
bakery-inventory-frontend/src/pages/customer/OrderHistoryPage.jsx
Back Office
- Inventory Dashboard
bakery-inventory-frontend/src/pages/inventory/InventoryDashboard.jsx - Manager Overview
bakery-inventory-frontend/src/pages/inventory/InventoryManagerDashboard.jsx - Supplier Management
bakery-inventory-frontend/src/pages/inventory/SupplierManagementPage.jsx - Product Management
bakery-inventory-frontend/src/pages/admin/ProductManagementPage.jsx - Order Management
bakery-inventory-frontend/src/pages/admin/AdminOrderManagementPage.jsx - User Management
bakery-inventory-frontend/src/pages/admin/UserManagementPage.jsx
Backend API
- Authentication Endpoints
bakery-inventory-backend/src/main/java/com/bakery/inventory/controller/AuthController.java - Product Endpoints
bakery-inventory-backend/src/main/java/com/bakery/inventory/controller/ProductController.java - Authentication Logic
bakery-inventory-backend/src/main/java/com/bakery/inventory/service/AuthService.java - Product Logic
bakery-inventory-backend/src/main/java/com/bakery/inventory/service/ProductService.java - Image Storage
bakery-inventory-backend/src/main/java/com/bakery/inventory/service/ImageStorageService.java - Other API Domains
bakery-inventory-backend/src/main/java/com/bakery/inventory/controller
Shared Platform
- Authentication State
bakery-inventory-frontend/src/context/AuthContext.jsx - HTTP Client
bakery-inventory-frontend/src/api/axiosInstance.js - Product API Client
bakery-inventory-frontend/src/services/productService.js - Auth API Client
bakery-inventory-frontend/src/services/authService.js
Other components
- Customer
Connections 25
- Customer → Application Router: uses
- Application Router → Product Catalog: routes to
bakery-inventory-frontend/src/App.jsx - Application Router → Product Details: routes to
bakery-inventory-frontend/src/App.jsx - Application Router → Cart: routes to
bakery-inventory-frontend/src/App.jsx - Application Router → Checkout: routes to
bakery-inventory-frontend/src/App.jsx - Application Router → Order History: routes to
bakery-inventory-frontend/src/App.jsx - Application Router → Authentication State: provides
bakery-inventory-frontend/src/App.jsx - Product Catalog → Product API Client: uses
- Product Details → Product API Client: uses
- Product API Client → HTTP Client: sends requests
bakery-inventory-frontend/src/services/productService.js - Auth API Client → HTTP Client: sends requests
bakery-inventory-frontend/src/services/authService.js - Application Router → Inventory Dashboard: routes to
bakery-inventory-frontend/src/App.jsx - Application Router → Manager Overview: routes to
bakery-inventory-frontend/src/App.jsx - Application Router → Supplier Management: routes to
bakery-inventory-frontend/src/App.jsx - Application Router → Product Management: routes to
bakery-inventory-frontend/src/App.jsx - Application Router → Order Management: routes to
bakery-inventory-frontend/src/App.jsx - Application Router → User Management: routes to
bakery-inventory-frontend/src/App.jsx - Manager Overview → Inventory Dashboard: uses inventory API
bakery-inventory-frontend/src/pages/inventory/InventoryManagerDashboard.jsx - Manager Overview → Order Management: uses order API
bakery-inventory-frontend/src/pages/inventory/InventoryManagerDashboard.jsx - Authentication Endpoints → Authentication Logic: delegates to
bakery-inventory-backend/src/main/java/com/bakery/inventory/controller/AuthController.java - Product Endpoints → Product Logic: delegates to
bakery-inventory-backend/src/main/java/com/bakery/inventory/controller/ProductController.java - Product Logic → Image Storage: uses
- Product Management → Product API Client: uses
bakery-inventory-frontend/src/services/productService.js - Product API Client → Product Endpoints: calls API
- Auth API Client → Authentication Endpoints: calls API
bakery-inventory-frontend/src/services/authService.js