Medical Document Manager (HealthVault) is a comprehensive healthcare information management system that enables users to securely store, organize, and manage their medical records, appointments, medications, and health information in one secure location.
- HTML5 (Semantic markup)
- CSS3 (Flexbox, Grid, Animations)
- Vanilla JavaScript (ES6+, No frameworks)
- Responsive Design (Mobile-first approach)
- Node.js (Runtime)
- Express.js (Web framework)
- MongoDB (Database)
- Mongoose (ODM)
- JWT (Authentication)
- bcryptjs (Password hashing)
- Nodemailer (Email service)
- CORS (Cross-origin requests)
- MongoDB Atlas (Cloud database)
- MongoDB Compass (Visual tool)
- Git & GitHub (Version control)
- Postman (API testing)
- VS Code (IDE)
- MongoDB Atlas (Cloud DB)
- MongoDB Compass (DB visualization)
Read: SETUP_MONGODB.md
- Create free MongoDB Atlas account
- Create cluster
- Get connection string
- Update
.envfile
cd backend
npm installnpm startShould see: β
MongoDB Connected Successfully!
cd frontend
# Open index.html in browser- Download from: https://www.mongodb.com/products/compass
- Connect with same connection string
- View your data in Compass!
medical-doc-manager/
βββ backend/
β βββ server.js (Express server)
β βββ models.js (MongoDB schemas)
β βββ .env (MongoDB connection)
β βββ package.json (Dependencies)
β βββ node_modules/ (Auto-created)
β
βββ frontend/
β βββ index.html (Complete web app)
β
βββ SETUP_MONGODB.md (Step-by-step guide)
βββ README.md (This file)
medical_db
- users - User accounts
- documents - Medical documents
- appointments - Doctor appointments
- medications - Current medications
- healthMetrics - Health measurements
- doctors - Doctor contacts
- medicalHistory - Health conditions
- healthAlerts - Health notifications
- insurance - Insurance policies
- activityLog - User activity
β
User authentication (JWT)
β
Document upload & management
β
Appointment scheduling
β
Medication tracking
β
Doctor directory
β
Activity logging
β
MongoDB database integration
β
MongoDB Compass integration
POST /api/auth/signup- Create accountPOST /api/auth/login- LoginGET /api/auth/me- Get current user
GET /api/documents- Get documentsPOST /api/documents- Upload documentDELETE /api/documents/:id- Delete document
GET /api/appointments- Get appointmentsPOST /api/appointments- Schedule appointmentDELETE /api/appointments/:id- Cancel appointment
GET /api/medications- Get medicationsPOST /api/medications- Add medicationDELETE /api/medications/:id- Remove medication
GET /api/doctors- Get doctorsPOST /api/doctors- Add doctorDELETE /api/doctors/:id- Remove doctor
GET /api/health-alerts- Get alertsPOST /api/health-alerts- Create alertPATCH /api/health-alerts/:id/read- Mark as read
GET /api/activity-log- Get activity
MongoDB not connecting?
- Check MONGODB_URI in .env
- Verify password is correct
- Check IP whitelist in MongoDB Atlas
- Make sure cluster is running
Port 5000 already in use?
npx kill-port 5000npm modules not installing?
npm install --forceThis project demonstrates:
- Full-stack development
- MongoDB integration
- REST APIs with Express
- JWT authentication
- Email notifications
- Professional UI/UX
- Production-ready code
- MongoDB Atlas: https://www.mongodb.com/cloud/atlas
- MongoDB Compass: https://www.mongodb.com/products/compass
- Mongoose: https://mongoosejs.com
- Express: https://expressjs.com
Yashasvi Panchal- EN23CS3011158 Yashika Mehta- EN23CS3011159 Yashwini Shinde- EN23CS3011164