This is a simple weather app built with React that allows users to check the current weather conditions for a specific city. The app utilizes the OpenWeatherMap API to fetch weather data based on user input.
- Search by City: Users can enter the name of a city to retrieve the current weather information.
- Temperature Unit: The temperature is displayed in Celsius.
- Responsive Design: The app is designed to work on various devices, providing a seamless experience.
Prerequisites
- Node.js installed on your machine
- OpenWeatherMap API key, which can be found here
Installation:
- Clone the repository:
git clone https://github.com/ZainabM872/react-weather-app.git
- Navigate to the project directory:
cd react-weather-app
- Install dependencies
npm install
- Start the development server:
npm start
- Open your browser and go to http://localhost:3000 to view the app.
- Enter the name of a city in the input box.
- Press "Enter" to fetch the weather data.
- View the current weather conditions for the specified city.
- React
- Open Weather Map API
Weather data is provided by Open Weather Map.