Skip to content

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.

Notifications You must be signed in to change notification settings

OluwafisayoIbrahim/Weather-App-using-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Weather App

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.

image image image image

Table of Contents

Introduction

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.

Features

  • 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.

Getting Started

To get a copy of this project up and running on your local machine, follow these instructions.

Prerequisites

Before you begin, ensure you have the following installed on your system:

Installation

  1. Clone the repository to your local machine:

    git clone

  2. Navigate to the project directory:

Copy code cd

  1. Install the required dependencies:

Copy code npm install

Usage

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.

Folder Structure

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.

Technologies Used

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:

Contributing

If you'd like to contribute to this project, please follow these guidelines:

  1. Fork the project and clone it to your local machine.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and test thoroughly.
  4. Ensure your code follows the project's coding style.
  5. Create a pull request with a clear description of your changes.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published