Welcome to the Weather App, a simple and intuitive weather application built with React.js and powered by the OpenWeather API. Stay informed about the current weather conditions in any city, state, or country with just a few clicks.
-
Clone the Repository:
git clone https://github.com/your-username/weather-app.git
-
Install Dependencies:
cd weather-app npm install -
Get Your API Key: Obtain your OpenWeather API key by signing up here. Replace the placeholder API key in the
Weather.jsfile with your actual API key. -
Run the App:
npm start
-
Usage:
- Enter the desired city, state, and country in the input fields.
- Click the "Submit" button to fetch the current weather information.
- The main functionality is implemented in the
Weather.jsfile. - The OpenWeather API key is stored in the
APIconstant. - User input is captured and processed using the
getWeatherandhandlechangefunctions. - Weather data is fetched from the OpenWeather API, and the results are displayed using the
DisplayWeathercomponent.
Check out the live demo of the Weather App here.
Special thanks to OpenWeather for providing the weather data API.
Feel free to explore, contribute, and customize the Weather App according to your needs. Happy coding! 🌦️🌍
