A simple weather app built with ReactJS that allows users to search for the weather of a specific city.
- Search for the weather of any city.
- Displays temperature, humidity, and wind speed.
- Shows an appropriate weather icon based on the weather conditions.
Follow these instructions to get a copy of the project up and running on your local machine.
- Node.js and npm installed on your machine.
-
Clone the repository:
git clone https://github.com/hassancoder1/reactjs-weather-app.git cd weather-app
-
Install dependencies:
npm install
-
Set up the API key: Obtain an API key from OpenWeatherMap (https://openweathermap.org/api) and replace
"YOUR_API_KEY"
inWheatherApp.jsx
with your actual API key. -
Start the development server:
npm start
-
Open your browser and navigate to http://localhost:3000 to see the app running.
- Enter the city name in the search input field.
- Click the search icon.
- The weather information for the specified city will be displayed.
- ReactJS - A JavaScript library for building user interfaces.
- OpenWeatherMap API - Weather data API.
Contributions are welcome! If you have any ideas, enhancements, or bug fixes, please open an issue or create a pull request.