WeatherWise is a web application that provides current weather conditions and a 7-day forecast for any location in the world. It uses the OpenWeatherMap API to gather weather data and displays it in an easy-to-read format.
This repository contains the source code for the WeatherWise web application.
http://weather-wise-theta.vercel.app/
- Next.js
- React (TypeScript)
- OpenWeatherMap API
- Geolocation API
- Hosted on Vercel
To run WeatherWise locally, follow these steps:
- Clone this repository to your local machine.
- Navigate to the root directory of the project.
- Install the required dependencies by running the following command:
npm install
Create a copy of the .env.example
file named .env.local
file in the root directory of the project and add your OpenWeatherMap API key as follows:
OPENWEATHER_API_KEY=<your API key here>
Start the development server by running the following command:
npm run dev
This will launch the WeatherWise application in your default browser.
To use WeatherWise, simply enter a location in the search bar and press the "Search" button. The application will retrieve the current weather conditions and a 7-day forecast for that location and display it on the screen.
Contributions to WeatherWise are welcome! If you find a bug or have an idea for a new feature, please create an issue or submit a pull request.
WeatherWise is licensed under the MIT license. See LICENSE for more information.