MediSync is a medicine lifecycle platform that connects retailers, hospitals, NGOs, and waste handlers to reduce medicine waste through inventory tracking, redistribution, and smart recommendations.
Frontend/: React + Vite web appBackend/: Express + MongoDB APIBackend/src/ml/: Python ML utilities for expiry and redistribution workflows
cd Backend
npm installCreate Backend/.env:
MONGO_URI=mongodb://127.0.0.1:27017/medisync
JWT_SECRET=change-this-to-a-strong-secret
PORT=5000Run backend:
npm run devcd Frontend
npm installCreate Frontend/.env:
VITE_API_BASE_URL=http://localhost:5000
VITE_API_TIMEOUT_MS=12000Run frontend:
npm run devOpen http://localhost:5173.
Install Python dependencies (inside Backend/):
pip install -r src/ml/requirements.txtTrain ML models from historical data:
npm run train:mlnpm run dev: start backend with nodemonnpm run start: start backend normallynpm run train:ml: run ML training pipeline