A comprehensive health monitoring and management application built with Next.js, featuring real-time air quality monitoring, health metrics tracking, and AI-powered medical assistance.
- Live AQI data from 1000+ cities worldwide
- 7-day historical trends and predictions
- Personalized health recommendations
- Best times to go outside
- Multiple pollutant tracking (PM2.5, PM10, Oβ, NOβ, SOβ, CO)
- Track vital health indicators
- Visualize trends over time
- Set health goals
- Monitor progress
- Find nearby clinics
- Book appointments
- Health records management
- Medication reminders
- Alert system
- Symptom checker
- Health advice
- Medical information
- 24/7 availability
- Node.js 18+
- pnpm (recommended) or npm
- WAQI API key (free) for real-time AQI data
-
Clone the repository
git clone https://github.com/Srishti-1806/Health_Connect.git cd Health_Connect -
Install dependencies
pnpm install # or npm install -
Set up environment variables
Create a
.env.localfile in the root directory:NEXT_PUBLIC_WAQI_API_KEY=your_api_key_here
Get your free API key: https://aqicn.org/data-platform/token/
π See QUICK_START_AQI.md for detailed setup instructions
-
Run the development server
pnpm dev # or npm run dev -
Open your browser
http://localhost:3000
The app uses the World Air Quality Index (WAQI) API for real-time air quality data.
Quick Setup:
- Get free API key from https://aqicn.org/data-platform/token/
- Add to
.env.local:NEXT_PUBLIC_WAQI_API_KEY=your_key - Restart server
Detailed Guide: See SETUP_GUIDE.md for complete setup and troubleshooting.
Without API Key: The app works with demo data - all features remain functional!
- Framework: Next.js 14 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: shadcn/ui
- Charts: Recharts
- Icons: Lucide React
- Package Manager: pnpm
Health_Connect/
βββ app/ # Next.js app directory
β βββ dashboard/ # Dashboard pages
β β βββ air-quality/ # AQI monitoring
β β βββ appointments/ # Appointment management
β β βββ find-clinics/ # Clinic finder
β β βββ health-metrics/ # Health tracking
β β βββ health-records/ # Medical records
β βββ login/ # Authentication
β βββ signup/ # User registration
βββ components/ # React components
β βββ ui/ # shadcn UI components
β βββ *.tsx # Custom components
βββ lib/ # Utilities
βββ public/ # Static assets
βββ styles/ # Global styles
Real-Time Data:
- Live AQI updates from global monitoring stations
- Updates every 30 minutes
- Support for 1000+ cities worldwide
Predictions:
- ML-based 7-day AQI forecasts
- Historical trend analysis
- Time-slot recommendations
Health Recommendations:
- Personalized advice based on respiratory conditions
- Activity suggestions
- Diet recommendations
- Safety precautions
Setup Your Health Profile:
- Add respiratory conditions (asthma, COPD, sinus issues)
- Get tailored recommendations
- Severity-based alerts
- Location-based search
- Interactive maps
- Clinic details and ratings
- Directions and contact info
- Track vitals (heart rate, blood pressure, etc.)
- Visualize trends
- Set and monitor goals
- Export data
# Development server
pnpm dev
# Build for production
pnpm build
# Start production server
pnpm start
# Lint code
pnpm lint
# Type check
pnpm type-check- TypeScript for type safety
- ESLint for code quality
- Prettier for formatting (if configured)
- Check
.env.localfile exists in root directory - Verify API key is correct
- Restart development server (
Ctrl+C, thenpnpm dev) - Check browser console for errors
See SETUP_GUIDE.md for detailed troubleshooting.
# Clear Next.js cache
rm -rf .next
# Reinstall dependencies
rm -rf node_modules pnpm-lock.yaml
pnpm install
# Rebuild
pnpm build- QUICK_START_AQI.md - Quick 3-step AQI setup
- SETUP_GUIDE.md - Complete setup and troubleshooting
- AQI_API_SETUP.md - API configuration details
- AQI_INTEGRATION_SUMMARY.md - Integration overview
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
- WAQI - World Air Quality Index for AQI data API
- shadcn/ui - Beautiful UI components
- Recharts - Chart library
- Next.js - React framework
For issues and questions:
- Open an issue on GitHub
- Check SETUP_GUIDE.md for common problems
- Review documentation files
- Environment variables are never committed (
.env*in.gitignore) - API keys are client-side safe (WAQI API design)
- No sensitive health data is transmitted without encryption
- Data stored locally in browser (localStorage)
India: Delhi, Mumbai, Bangalore, Chennai, Kolkata, Hyderabad, Pune, Ahmedabad
Global: Beijing, Shanghai, Tokyo, Singapore, London, Paris, New York, Los Angeles, and 1000+ more cities
- User authentication
- Cloud data sync
- Mobile app (React Native)
- Push notifications for alerts
- Integration with wearables
- Telemedicine features
- Prescription management
- Lab report integration
Built with β€οΈ for better health monitoring
Repository: https://github.com/Srishti-1806/Health_Connect