This is a Node.js-based weather application that allows users to register, authenticate, and manage their favorite cities' weather. The application fetches weather data using an external API, with Redis caching for performance optimization. Additionally, users can update their details and manage their favorite cities.
- User registration and authentication
- Fetch real-time weather data for any city
- Add and manage favorite cities
- Redis caching for weather data to improve performance
- RESTful API documented with Swagger
- Clone the repository:
git clone https://github.com/Elksass315/node_Weather
- Install dependencies:
npm install
To start the server in development mode:
npm run devTo run tests:
npm testSwagger documentation is available after starting the server. You can view the documentation at:
http://localhost:3000/api-docs
This project uses Redis to cache weather data for 1 hour, reducing the need to fetch data from the weather API repeatedly.