- Node.js (v18+)
- MongoDB (Running on localhost:27017)
Open a terminal:
cd backend
npm install
npm run seed # (Optional: Resets DB with default users)
node server.jsThe server will start on port 5000.
Default Login Credentials:
- Admin:
admin@flowchain.ai/admin123 - Ops Manager:
ops@flowchain.ai/ops123 - Customer:
customer@gmail.com/customer123
Open a new terminal:
cd frontend
npm install
npm run devOpen the link provided (usually http://localhost:5173) to view the app.
- /backend: Node.js + Express + Mongoose API.
models/: Database schemas (Strictly typed).controllers/: Logic for Auth and others.routes/: API endpoints.
- /frontend: React + Vite + TailwindCSS.
src/components/layout: Sidebar and Main Layout.src/pages: Role-based dashboards (Admin, Ops, etc).src/context: Authentication State Management.src/services: Axios setup with JWT interceptors.
- Role-Based Authentication: Secure login with JWT.
- Enterprise UI: Dark mode, glassmorphism, responsive dashboard.
- Database Schema: Complete MongoDB schema for Supply Chain entities.
- Admin Dashboard: Visual analytics using Recharts.
- Add specific business logic in
backend/controllers. - Expand frontend pages in
frontend/src/pages/using the provided components.