A health-focused weather application that provides personalized weather alerts based on user's respiratory conditions.
- User authentication (register, login, refresh token)
- Health profile management
- Location-based services
- Personalized weather and health alerts
- Daily health forecast dashboard
- Health recommendations based on weather conditions
- Notifications and reminders
- Emergency contacts and SOS features
- Node.js with Express.js
- MongoDB for database
- JWT for authentication
- Swagger for API documentation
- ES6/ES7 JavaScript features
- Node.js (v14 or later)
- MongoDB (local or cloud)
- npm or yarn
- Clone the repository
git clone https://github.com/yourusername/weatherhealth.git
cd weatherhealth- Install dependencies
npm install- Set up environment variables
cp src/.env.example .envEdit the .env file with your configuration.
- Start the development server
npm run dev- Access the application
- API:
http://localhost:5000/api/v1 - Swagger Documentation:
http://localhost:5000/api-docs
Swagger documentation is available at /api-docs endpoint when the server is running.
├── src/
│ ├── config/ # Configuration files
│ ├── controllers/ # Request handlers
│ ├── middleware/ # Custom middleware
│ ├── models/ # Mongoose models
│ ├── routes/ # Express routes
│ ├── services/ # Business logic
│ ├── utils/ # Utility functions
│ └── server.js # Main application file
├── .env # Environment variables
├── .env.example # Example environment variables
└── package.json # Project dependencies
This project is licensed under the MIT License - see the LICENSE file for details.