A full-stack healthcare application with JWT auth, appointments, health monitoring, EHR, and risk prediction.
- Frontend: React (Vite) + Tailwind CSS + Recharts
- Backend: Node.js + Express
- Database: MongoDB (Mongoose)
- Auth: JWT + bcrypt
cd backend
cp .env.example .env # Edit MONGODB_URI and JWT_SECRET
npm install
npm run seed # Optional: seed demo data
npm run devcd frontend
cp .env.example .env # Set VITE_API_URL=http://localhost:5000/api
npm install
npm run dev- Patient:
ravi@patient.com/password123 - Doctor:
amit@doctor.com/password123 - Health Worker:
vijay@healthworker.com/password123 - Admin:
admin@admin.com/password123
- Auth: JWT login/register, role-based access (Patient, Doctor, Health Worker, Admin)
- Appointments: Book in-person/teleconsultation, doctor availability
- Health Monitoring: BP, sugar, heart rate, oxygen, temp, weight
- Risk Logic: 3+ abnormal readings in 7 days → HIGH RISK
- EHR: Diagnosis, prescriptions, lab reports, medication tracking
- Doctor Dashboard: Filter patients, view high-risk, health trends
- Alerts: Abnormal health, appointment reminders
- Frontend: Vercel (set
VITE_API_URLto backend URL) - Backend: Render/Railway (set
MONGODB_URI,CORS_ORIGIN,JWT_SECRET)