A minimal viable prototype for the Integrated Campus Dining Ecosystem.
- Student App: Wallet balance, mock top-up (Self/Parent), QR code payment, transaction history.
- Vendor POS: Tablet-optimized interface, QR scanning (with 5-min expiry), meal presets.
- Admin Dashboard: Analytics cards, transaction volume, dynamic waste reduction %, user management, and balance refunds.
cd backendpython -m venv venvsource venv/bin/activate(Mac/Linux) orvenv\Scripts\activate(Windows)pip install -r requirements.txtcp .env.example .envpython app.py(Runs on http://localhost:5000)
cd frontendnpm installnpm start(Runs on http://localhost:3000)
- Student: Register as student -> Top up -> View QR in Profile.
- Vendor: Register/Login as vendor -> Scan student QR -> Deduct meal cost.
- Admin: Register/Login as admin -> View reports -> Manage users -> Process refunds.
- Backend: Flask, SQLAlchemy, JWT, Bcrypt, QRcode/Pillow.
- Frontend: React, Tailwind CSS, Recharts, Lucide-react (icons), dayjs.
- Security: JWT with 24h expiry, QR tokens with 5-min expiry.