# 🩺 MediQuery
**MediQuery** is a full-stack medical assistant web app that allows users to:
- Search for nearby medical stores based on location (manual input or GPS).
- Get medicine suggestions based on entered symptoms.
- Works without Google Maps — uses OpenStreetMap (Nominatim + Overpass API).
## 🔗 Live Demo
🌐 Frontend: [https://mediquery.vercel.app](https://mediquery.vercel.app)
⚙️ Backend: [https://mediquery-server.onrender.com](https://mediquery-server.onrender.com)
---
## 🚀 Features
- 📍 Location-based search for pharmacies using OpenStreetMap.
- 📦 Intelligent medicine suggestions via Google Custom Search API.
- 🔐 CORS-enabled and RESTful APIs.
- ⚡ Fast, mobile-friendly UI using modern stack (Next.js, Tailwind).
---
## 🛠️ Tech Stack
| Frontend | Backend | APIs Used |
|------------------|----------------|---------------------------|
| Next.js (App dir) | Node.js, Express | OpenStreetMap Nominatim API |
| Tailwind CSS | node-fetch | Overpass API |
| Vercel (Hosting) | Render (Hosting) | Google Custom Search API (optional) |
---
## 🧑💻 Getting Started
### 1. Clone the Repository
```bash
git clone https://github.com/kunalcoder45/MediQuery.git
cd MediQuerycd server
npm install
node server.jsMake sure PORT 3000 is free and you are connected to the internet.
cd ../client
npm install
npm run devOpen: http://localhost:3000
- Push
server/to a separate GitHub repo. - Go to Render, create a new Web Service.
- Set build command:
npm install - Set start command:
node server.js - Add environment:
PORT = 3000
-
Push
client/to GitHub. -
Go to Vercel, import the repo.
-
Add
.envvariable:NEXT_PUBLIC_API_URL = https://your-backend-url.onrender.com
-
Add
vercel.jsonfor SPA routing:{ "rewrites": [{ "source": "/(.*)", "destination": "/" }] }
Body:
{
"location": "ranchi"
}Response:
{
"stores": [
{
"id": 123456,
"name": "Health Pharmacy",
"phone": "N/A",
"lat": "23.3441",
"lon": "85.3096"
},
...
]
}- Add medicine detail pages.
- Save user search history.
- Support user authentication (login/signup).
- Use AI for smarter symptom analysis.
Made with ❤️ by @kunalcoder45
This project is licensed under the MIT License.