This project is a simple weather information service built using React. It fetches and displays weather information based on user input (city or location) using the OpenWeatherMap API.
- Fetches weather data for a given city using the OpenWeatherMap API.
- Displays the temperature, weather description, humidity, and wind speed.
- Clears the input field after displaying the weather data.
- Responsive design with a clean and simple UI.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/weather-app.git cd weather-app -
Install dependencies:
npm install
-
Run the app:
npm start
The application will start and be accessible at http://localhost:3000.
- Open the app in your browser.
- Enter a city name in the input field.
- Click the "Get Weather" button.
- The weather information for the specified city will be displayed, and the input field will be cleared.