A next-generation AI-powered healthcare platform connecting patients and doctors with intelligent analysis, real-time communication, and multilingual support.
- AI-Powered Analysis: Upload medical reports or describe symptoms for Gemini AI analysis
- Doctor Review System: Professional medical opinions on AI-generated insights
- Real-Time Chat: WebSocket-based communication with voice AI support
- Multilingual Support: English, Hindi, and Hinglish with automatic translation
- Nearby Doctor Matching: Location-based doctor recommendations
- Voice AI: Speech-to-text and text-to-speech capabilities
- Emergency Alerts: Risk level assessment with critical condition warnings
- React 19 + Vite
- Tailwind CSS + ShadCN UI
- Framer Motion animations
- Socket.io-client for real-time chat
- Node.js + Express
- MongoDB + Mongoose
- JWT authentication
- Google Gemini AI integration
- Web Speech API for voice features
- Node.js 18+
- MongoDB (local or Atlas)
- Google Gemini API key
# Install server dependencies
cd server
npm install
# Install client dependencies
cd ../client
npm installCreate .env file in the server directory:
PORT=5000
MONGODB_URI=mongodb://localhost:27017/medigem-ai
JWT_SECRET=your-super-secret-jwt-key
GEMINI_API_KEY=your-gemini-api-key
NODE_ENV=developmentMake sure MongoDB is running locally or update the connection string for Atlas.
# Terminal 1: Start the server
cd server
npm run dev
# Terminal 2: Start the client
cd client
npm run dev- Frontend: http://localhost:5173
- Backend API: http://localhost:5000
POST /api/auth/register- User registrationPOST /api/auth/login- User loginGET /api/auth/me- Get current user
POST /api/reports/upload- Upload and analyze reportGET /api/reports/my-reports- Get user's reportsGET /api/reports/all-reports- Get all reports (doctors)PATCH /api/reports/review/:id- Add doctor review
GET /api/doctors- Search doctors by specialization/city
GET /api/chat/consultations- Get user's consultationsPOST /api/chat/consultations- Create consultationGET /api/chat/messages/:consultationId- Get messagesPOST /api/chat/messages- Send message
MediGem AI+/
├── client/
│ ├── src/
│ │ ├── components/
│ │ ├── context/
│ │ ├── pages/
│ │ └── ...
│ └── package.json
├── server/
│ ├── controllers/
│ ├── middleware/
│ ├── models/
│ ├── routes/
│ ├── utils/
│ └── package.json
└── README.md
- Password hashing with bcrypt
- JWT-based authentication
- Input validation
- Secure file uploads
- CORS configuration
- Connect GitHub repository
- Set environment variables
- Deploy
- Connect GitHub repository
- Set build command:
npm run build - Deploy
- Fork the repository
- Create feature branch
- Commit changes
- Push to branch
- Create Pull Request
MIT License