This is a simple weather app built using React that allows users to search for the current weather conditions of a city. It uses the OpenWeatherMap API to fetch weather data and displays it in a user-friendly interface.
The React Weather App is a simple web application that allows users to check the current weather conditions for any city around the world. It utilizes the OpenWeatherMap API to fetch real-time weather data and presents it in an intuitive user interface.
- Weather Data: Get up-to-date weather information for any city.
- Dynamic Icons: Weather icons change based on the current weather conditions.
- Temperature in Celsius: Displayed in degrees Celsius for easy readability.
- Humidity and Wind Speed: Additional information about humidity and wind speed.
- Search Functionality: Easily search for weather data by city name.
To get a copy of this project up and running on your local machine, follow these instructions.
Before you begin, ensure you have the following installed on your system:
- Node.js: Make sure you have Node.js installed. You can download it from https://nodejs.org/.
-
Clone the repository to your local machine:
git clone
-
Navigate to the project directory:
Copy code cd
- Install the required dependencies:
Copy code npm install
To start the application, run the following command:
Copy code npm start This will start the development server, and you can access the app in your web browser at http://localhost:3000.
The project structure is organized as follows:
src
: Contains the source code for the React application.Components
: Contains the React components used in the app.WeatherApp
: Contains the main WeatherApp component.Assets
: Contains image assets used in the app.App.js
: The entry point of the application.WeatherApp.jsx
: The main component that displays weather information.WeatherApp.css
: The styles for the WeatherApp component.App.css
: Global styles for the entire application.
React: A JavaScript library for building user interfaces. OpenWeatherMap API: Used to fetch weather data. CSS: Styling the components. Contributing If you'd like to contribute to this project, please follow these guidelines:
If you'd like to contribute to this project, please follow these guidelines:
- Fork the project and clone it to your local machine.
- Create a new branch for your feature or bug fix.
- Make your changes and test thoroughly.
- Ensure your code follows the project's coding style.
- Create a pull request with a clear description of your changes.