Skip to content

Beckisbeg/SafeZone-Weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeatherHealth API

A health-focused weather application that provides personalized weather alerts based on user's respiratory conditions.

Features

  • 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

Tech Stack

  • Node.js with Express.js
  • MongoDB for database
  • JWT for authentication
  • Swagger for API documentation
  • ES6/ES7 JavaScript features

Getting Started

Prerequisites

  • Node.js (v14 or later)
  • MongoDB (local or cloud)
  • npm or yarn

Installation

  1. Clone the repository
git clone https://github.com/yourusername/weatherhealth.git
cd weatherhealth
  1. Install dependencies
npm install
  1. Set up environment variables
cp src/.env.example .env

Edit the .env file with your configuration.

  1. Start the development server
npm run dev
  1. Access the application
  • API: http://localhost:5000/api/v1
  • Swagger Documentation: http://localhost:5000/api-docs

API Documentation

Swagger documentation is available at /api-docs endpoint when the server is running.

Project Structure

├── 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

License

This project is licensed under the MIT License - see the LICENSE file for details.

weather-health

About

A weather app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors