This repository contains the code for a weather checker application built using React. The application allows users to retrieve and display weather information for different locations.
- Real-time weather data retrieval using a weather API.
- Search functionality to find weather information for specific locations.
- Display of current weather conditions, including temperature, humidity, wind speed, and description.
- Five-day forecast display, showing the weather conditions for each day.
- User-friendly interface with responsive design.
- React: A JavaScript library for building user interfaces.
- Axios: A promise-based HTTP client for making API requests.
- Weather API: The application uses an external weather API to fetch weather data.
- Node.js and npm (Node Package Manager) should be installed on your system.
- Clone this repository:
git clone https://github.com/your-username/weather-checker-app.git
- Navigate to the project directory:
cd weather-checker-app
- Install the dependencies:
npm install
- Obtain an API key from a weather service provider (e.g., OpenWeatherMap).
- Create a
.env
file in the root directory. - Set the following environment variable in the
.env
file:
REACT_APP_WEATHER_API_KEY=<your-api-key>
- Start the development server:
npm start
- The application will run on
https://localhost:3000
. - Open the application in a web browser.
- You can customize the design and layout of the application by modifying the React components and CSS files.
- To change the weather API provider, update the API URL and the API request in the code.
Contributions are welcome! If you find any bugs or want to add new features, please open an issue or submit a pull request.
This project is licensed under the MIT License.