- Search for weather data of any location by entering the city or place name.
- View real-time weather information, including temperature in Fahrenheit and Celsius, humidity, and wind speed.
- Beautiful background image that changes based on the weather conditions.
- Responsive design that adapts to different screen sizes.
- Clone or download this repository to your local machine.
- Open the project in your preferred code editor.
- In the terminal, navigate to the project directory.
- Install the project dependencies by running:
npm install - Get an API key from OpenWeatherMap by signing up on their website (https://openweathermap.org/) and obtaining the API key.
- Create a new file named
.envin the root directory of the project and add the following line:
REACT_APP_API_KEY=your_api_key_here - Replace
your_api_key_herewith the API key obtained from OpenWeatherMap. - Save the
.envfile. - Start the development server by running:
npm start - The app will be running at
http://localhost:3000in your web browser. - Enter the name of a city or place in the search bar and press the "Enter" key.
- Weather information for the entered location will be displayed, including temperature, humidity, and wind speed.
- React: Frontend JavaScript library for building user interfaces.
- Axios: HTTP client used to make API requests to OpenWeatherMap.
- OpenWeatherMap API: Used to fetch real-time weather data based on the user's search.
The background image is sourced from Unsplash (https://unsplash.com/) and is used for illustrative purposes only.
Contributions to this project are welcome. If you find any bugs or want to add new features, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.