A multilingual healthcare triage and geospatial system with AI-powered disease prediction.
.\start.ps1This will start both backend and frontend servers automatically!
Backend:
cd backend
uvicorn app.main:app --reloadFrontend:
cd frontend
npm run devMedicine Reminder Service:
cd backend
python medicine_reminder_service.pyRuns on http://localhost:8001
Access Points:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Docs: http://localhost:8000/docs
First-time startup: ~20-40 seconds (trains ML model, caches RSS feeds)
Subsequent startups: ~2-5 seconds ✅
The app automatically caches the trained ML model and pre-warms RSS feeds for blazing-fast performance after the first run.
📖 See PERFORMANCE_OPTIMIZATION.md for details.
- ARCHITECTURE.md - System architecture
- IMPLEMENTATION_SUMMARY.md - Multilingual support details
- PERFORMANCE_OPTIMIZATION.md - Performance improvements
- I18N_README.md - Internationalization guide
- Multilingual Support - 6 languages (English, Hindi, Marathi, Punjabi, Tamil, Sanskrit)
- Disease Prediction - AI-powered symptom analysis with SVM model
- Wellness Hub - RSS feeds from CNN Health, NYT Health, BBC Health
- Health Videos - Curated YouTube content
- Drug Interactions - Medication safety checker
- Geospatial Heatmap - Disease outbreak tracking
- Performance Optimizations - Model caching, RSS pre-warming
- User authentication
- Prescription OCR
- Voice input in native languages
- Python 3.8+
- Node.js 18+
- PostgreSQL with PostGIS (optional, for heatmap feature)
cd backend
python -m venv venv
.\venv\Scripts\activate # Windows
# source venv/bin/activate # Linux/Mac
pip install -r requirements.txtcd frontend
npm installFor the heatmap feature, you need PostgreSQL with PostGIS:
- Install PostgreSQL: Download
- Install PostGIS: Use Stack Builder
- Create Database:
CREATE USER mediguard WITH PASSWORD 'mediguard_password'; CREATE DATABASE mediguard_db; \c mediguard_db CREATE EXTENSION postgis;
# Health check
curl http://localhost:8000/health
# Get symptoms list
curl http://localhost:8000/api/v1/triage/symptoms
# Analyze symptoms
curl -X POST http://localhost:8000/api/v1/triage/analyze \
-H "Content-Type: application/json" \
-d '{"symptoms": ["fever", "headache"], "language": "en"}'Visit http://localhost:3000 and test:
- Language switcher (top right)
- Symptom checker
- Wellness hub
- Drug interactions
Frontend:
- Next.js 16 (App Router)
- React 19
- TypeScript
- Tailwind CSS 4
- Leaflet (maps)
- i18next (translations)
Backend:
- FastAPI
- scikit-learn (ML)
- pandas, numpy
- feedparser (RSS)
- deep-translator (i18n)
- SQLAlchemy + PostGIS (optional)
- Check ARCHITECTURE.md for system design
- Follow the existing code style
- Test multilingual features in all supported languages
- Update documentation for new features
This project is part of the Arogyaसेतू healthcare initiative.
App is slow on startup:
- First run takes longer (trains ML model)
- Check PERFORMANCE_OPTIMIZATION.md
- Verify
backend/app/data/disease/trained_model.pklexists after first run
RSS feeds not loading:
- Check internet connection
- Backend pre-warms cache on startup (wait 10-15 seconds)
Translations not working:
- Verify
public/locales/folder exists in frontend - Check browser console for errors
For more help, see QUICK_FIX_GUIDE.md