Skip to content

Neeraj-Sahni/MEDIGEM-AI-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

MediGem AI+ - Healthcare Platform

A next-generation AI-powered healthcare platform connecting patients and doctors with intelligent analysis, real-time communication, and multilingual support.

Features

  • 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

Tech Stack

Frontend

  • React 19 + Vite
  • Tailwind CSS + ShadCN UI
  • Framer Motion animations
  • Socket.io-client for real-time chat

Backend

  • Node.js + Express
  • MongoDB + Mongoose
  • JWT authentication
  • Google Gemini AI integration
  • Web Speech API for voice features

Setup Instructions

Prerequisites

  • Node.js 18+
  • MongoDB (local or Atlas)
  • Google Gemini API key

1. Clone and Install Dependencies

# Install server dependencies
cd server
npm install

# Install client dependencies
cd ../client
npm install

2. Environment Configuration

Create .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=development

3. Start MongoDB

Make sure MongoDB is running locally or update the connection string for Atlas.

4. Start the Application

# Terminal 1: Start the server
cd server
npm run dev

# Terminal 2: Start the client
cd client
npm run dev

5. Access the Application

API Endpoints

Authentication

  • POST /api/auth/register - User registration
  • POST /api/auth/login - User login
  • GET /api/auth/me - Get current user

Reports

  • POST /api/reports/upload - Upload and analyze report
  • GET /api/reports/my-reports - Get user's reports
  • GET /api/reports/all-reports - Get all reports (doctors)
  • PATCH /api/reports/review/:id - Add doctor review

Doctors

  • GET /api/doctors - Search doctors by specialization/city

Chat

  • GET /api/chat/consultations - Get user's consultations
  • POST /api/chat/consultations - Create consultation
  • GET /api/chat/messages/:consultationId - Get messages
  • POST /api/chat/messages - Send message

Project Structure

MediGem AI+/
├── client/
│   ├── src/
│   │   ├── components/
│   │   ├── context/
│   │   ├── pages/
│   │   └── ...
│   └── package.json
├── server/
│   ├── controllers/
│   ├── middleware/
│   ├── models/
│   ├── routes/
│   ├── utils/
│   └── package.json
└── README.md

Security Features

  • Password hashing with bcrypt
  • JWT-based authentication
  • Input validation
  • Secure file uploads
  • CORS configuration

Deployment

Backend (Render)

  1. Connect GitHub repository
  2. Set environment variables
  3. Deploy

Frontend (Vercel)

  1. Connect GitHub repository
  2. Set build command: npm run build
  3. Deploy

Contributing

  1. Fork the repository
  2. Create feature branch
  3. Commit changes
  4. Push to branch
  5. Create Pull Request

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors