A professional full-stack inventory dashboard with a React frontend and Spring Boot backend.
- Add, update, and delete products
- Low inventory alerts based on product thresholds
- Supplier tracking with contact details and reliability status
- Sales history with automatic stock reduction
- Dashboard metrics for stock value, revenue, units, suppliers, and alerts
- Offline demo data in the frontend when the backend is not running
backend/
src/main/java/com/smartinventory/
controller/
dto/
model/
service/
frontend/
src/
main.jsx
styles.css
Java 17 is already suitable for this project. Maven is required to run the Spring Boot app.
cd backend
mvn spring-boot:runThe API runs on:
http://localhost:8080/api
PowerShell on this machine blocks the npm.ps1 shim, so use npm.cmd.
cd frontend
npm.cmd install
npm.cmd run devThe React app runs on:
http://localhost:5173
GET /api/summaryGET /api/productsPOST /api/productsPUT /api/products/{id}DELETE /api/products/{id}GET /api/alerts/low-stockGET /api/suppliersPOST /api/suppliersGET /api/salesPOST /api/sales