Skip to content

thaihanguyen98/weather-react-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App - React Project

Welcome to the Weather App! This project was created as part of the SheCodes React Workshop to practice working with React, API integration, and displaying dynamic data like weather information in a user-friendly interface.

Table of Contents

Introduction

The Weather App is a React-based application that provides current weather information for cities around the world. It fetches real-time data from an external weather API and displays details like temperature, weather conditions, humidity, wind speed, and more. This project helped me solidify key React concepts such as working with components, state, props, and API requests.

Live Demo

https://thaiha-weather-app.netlify.app/

Features

  • Real-Time Weather Data: Get up-to-date weather information for any city.
  • Search Functionality: Search for weather by city name.
  • Temperature Display: Shows temperature in both Celsius and Fahrenheit.
  • Detailed Weather Information: Includes humidity, wind speed, and weather description.
  • Responsive Design: Adaptable for both mobile and desktop users.

Tech Stack

  • React: Framework used to build the app.
  • CSS: For styling and responsive design.
  • Axios: For handling API requests.
  • OpenWeather API: To fetch weather data in real-time.

Installation

To run the app locally on your machine:

  1. Clone the repository:

    git clone https://github.com/thaihanguyen98/weather-app.git
    
  2. Navigate to the project directory:

    cd weather-app
    
  3. Install the necessary dependencies:

    npm install
    
  4. Start the development server:

    npm start
    
  5. The app will run at http://localhost:3000.

Usage

Enter the name of a city in the search bar. The app will fetch and display the current weather details for that city. Toggle between Celsius and Fahrenheit using the provided buttons. View additional information such as humidity, wind speed, and a weather description.

API Used

This app uses the OpenWeather API to retrieve real-time weather data. You can find more information about the API at https://openweathermap.org.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published