How vibeswithraj/smart-inventory-management-system works
Smart Inventory is a full-stack inventory dashboard with a Next.js interface, Express API, and SQLite persistence. The principal workflow is a manager viewing inventory totals, stock movements, alerts, suggestions, vendors, and trends; the dashboard requests dashboard, vendor, and analytics data from the API. The API also exposes product search and creation and stock adjustment. The excerpts establish API-to-database calls and dashboard fetches, but do not show the internals of every database query or any frontend product-editing flow.
Main entry points: server.js Express API routes · db.js SQLite inventory store · page.tsx Inventory dashboard
Components 9
Dashboard interface
- Inventory dashboard
frontend/src/app/page.tsx
Inventory API
- Express API routes
backend/src/server.js
Inventory data
- Dashboard snapshot
backend/src/db.js - Product catalog
backend/src/db.js - Stock adjustments
backend/src/db.js - Vendor directory
backend/src/db.js - Inventory analytics
backend/src/db.js - SQLite inventory store
backend/src/db.js
Other components
- Inventory manager
Connections 14
- Inventory manager → Inventory dashboard: views
README.md - Inventory dashboard → Express API routes: requests dashboard data
frontend/src/app/page.tsx - Inventory dashboard → Express API routes: requests vendors
frontend/src/app/page.tsx - Inventory dashboard → Express API routes: requests analytics
frontend/src/app/page.tsx - Express API routes → Dashboard snapshot: calls snapshot
backend/src/server.js - Express API routes → Product catalog: calls product queries
backend/src/server.js - Express API routes → Stock adjustments: calls stock adjustment
backend/src/server.js - Express API routes → Vendor directory: calls vendor query
backend/src/server.js - Express API routes → Inventory analytics: calls analytics query
backend/src/server.js - Dashboard snapshot → SQLite inventory store: reads and writes
backend/src/db.js - Product catalog → SQLite inventory store: reads and writes
backend/src/db.js - Stock adjustments → SQLite inventory store: updates stock and movements
backend/src/db.js - Vendor directory → SQLite inventory store: reads vendors
backend/src/db.js - Inventory analytics → SQLite inventory store: reads products
backend/src/db.js