================
A simple React application that fetches weather data from the OpenWeatherMap API and displays it on the screen.
- Weather Data Fetching: Fetches current weather data for a given city from the OpenWeatherMap API
- Weather Display: Displays the current weather data, including temperature, humidity, and wind speed
- Forecast Display: Displays a 5-day weather forecast for the given city
- Error Handling: Handles errors that may occur during API requests
- Clone the repository to your local machine
- Install the required dependencies by running
npm install
- Start the application by running
npm run dev
- Open your web browser and navigate to
http://localhost:3000
This application uses the OpenWeatherMap API to fetch weather data. You will need to obtain an API key from OpenWeatherMap to use this application. You can obtain an API key by creating an account on the OpenWeatherMap website.
You will need to configure the API key in the Search.tsx
file. Replace the appid
variable with your own API key.
If you'd like to contribute to this project, please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License.