Google Solution Challenge 2026 | Solving medicine shortages in rural Indian PHCs using AI
Over 25,000 Primary Health Centers (PHCs) in rural India face chronic medicine shortages. Stock management is done manually on paper registers, leading to:
- Medicines running out before reorders are placed
- Expiry wastage due to poor tracking
- No visibility into consumption patterns or seasonal demand spikes
MediCure is an AI-powered supply chain management system that:
- Predicts stockouts before they happen using Google Gemini AI
- Automates reorder suggestions based on consumption trends and seasonal patterns
- Provides real-time visibility across multiple PHC locations
- Assists PHC staff via an AI chat assistant in simple language
- Dashboard — Live stats, consumption trend charts, PHC network map, alerts
- Inventory Management — Full CRUD with Firebase Firestore persistence
- AI Predictions — Gemini 2.5 Flash analyzes stock and predicts stockouts with seasonal context
- Order Management — Create orders, track status with timeline view
- Reports — AI-generated narrative reports with charts
- Chat Assistant — Gemini-powered assistant for PHC staff queries
| Layer | Technology |
|---|---|
| Frontend | React 19, Tailwind CSS, Recharts |
| Backend Proxy | Node.js + Express |
| Database | Firebase Firestore |
| AI | Google Gemini 2.5 Flash |
| Hosting | Firebase Hosting |
- Node.js 18+
- A Google Gemini API key from aistudio.google.com
- A Firebase project with Firestore enabled
git clone https://github.com/Dipro-cyber/MediCure.git
cd MediCure
npm installCreate a .env file in the root:
REACT_APP_GEMINI_KEY=your_gemini_api_key
REACT_APP_FIREBASE_API_KEY=your_firebase_api_key
REACT_APP_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
REACT_APP_FIREBASE_PROJECT_ID=your_project_id
REACT_APP_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
REACT_APP_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
REACT_APP_FIREBASE_APP_ID=your_app_idYou need two terminals:
Terminal 1 — React app:
npm startTerminal 2 — Gemini proxy server:
npm run server- Google Gemini 2.5 Flash — AI predictions, chat assistant, report generation
- Firebase Firestore — Real-time database for medicine inventory
- Firebase Hosting — Production deployment
Built for Google Solution Challenge 2026
MediCure — Because no patient should suffer due to an empty medicine shelf.