Skip to content

Harmeet10000/1.weather-app

Repository files navigation

React Weather App

Welcome to the React Weather App! This is a simple and user-friendly weather application built with React. It provides current weather information, hourly and daily forecasts, allows you to choose the metric system, set your location easily, and even changes the background color dynamically based on the weather conditions.

Screenshot from 2024-01-17 14-22-58

Table of Contents

Features

  • Current Weather: Get real-time information about the current weather conditions.

  • Hourly Forecast: Check the hourly forecast to plan your day effectively.

  • Daily Forecast: Get a 5-day forecast to prepare for the upcoming week.

  • Metric System: Choose between the metric system for temperature and other measurements.

  • Location Shortcut: Easily set your location with a shortcut for quick access.

  • Dynamic Background: The background color changes dynamically based on the current weather, providing a visual representation of the weather conditions.

Installation

  1. Clone the repository to your local machine:

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

    cd react-weather-app
  3. Install the dependencies:

    npm install

Usage

  1. Start the development server:

    npm start
  2. Open your browser and navigate to http://localhost:3000 to view the React Weather App.

Dependencies

Make sure you have the following dependencies installed in your project:

  • @iconscout/react-unicons: "^1.1.6"
  • @testing-library/jest-dom: "^5.16.4"
  • @testing-library/react: "^13.3.0"
  • @testing-library/user-event: "^13.5.0"
  • luxon: "^2.4.0"
  • react: "^18.1.0"
  • react-dom: "^18.1.0"
  • react-scripts: "5.0.1"
  • react-toastify: "^9.0.2"

You can install these dependencies using:

npm install @iconscout/react-unicons@1.1.6 @testing-library/jest-dom@5.16.4 @testing-library/react@13.3.0 @testing-library/user-event@13.5.0 luxon@2.4.0 react@18.1.0 react-dom@18.1.0 react-scripts@5.0.1 react-toastify@9.0.2

Contributing

Feel free to contribute to the project by creating issues or submitting pull requests. Your feedback and contributions are highly appreciated.

License

This project is licensed under the MIT License.