Food Production Order Management System for managing daily line sales orders.
- make sure everyting clean
- Node.js 24+
- MongoD B
- Server Setup
cd server
npm install
cp .env.example .env
# Edit .env with your MongoDB URI and JWT secret- Client Setup
cd client
npm install
cp .env.example .env
# Edit .env with your API URL- Start MongoDB (if running locally)
mongod- Seed Admin User
cd server
npm run seedDefault admin credentials:
- Username:
admin - PIN:
123456
- Start Server
cd server
npm run devServer runs on http://localhost:5000
- Start Client
cd client
npm run devClient runs on http://localhost:5173
- PIN-based Authentication with role-based access (Admin/User)
- Order Management: Create and view daily orders with automatic price calculation
- Customer Management (Admin): CRUD operations and CSV import
- User Management (Admin): Create users and update PINs
- CSV Export: Export orders for accounting and operations
- Role-based Permissions: Sales users see only their orders, admins see all
Frontend:
- React + TypeScript
- Tailwind CSS + shadcn/ui
- React Router
- Axios
Backend:
- Node.js + Express + TypeScript
- MongoDB + Mongoose
- JWT Authentication
- bcrypt for PIN hashing
After running npm run seed in the server directory:
- Username: admin
- PIN: 123456