Skip to content

Weather-Widget is a React app that lets users check real-time weather by entering a city name, using the OpenWeather API. Styled with Material UI and deployed on Netlify for easy access.

Notifications You must be signed in to change notification settings

YashPandey1405/Weather-Widget

Repository files navigation

Weather-Widget

A simple weather application that allows users to enter a city name and view current weather details powered by the OpenWeather API. Built with React and Vite, and styled with Material UI for an attractive, user-friendly interface.

Live Demo

Check out the live demo of the project hosted on Netlify:
Weather-Widget

Features

  • City Input: Users can input any city name.
  • Weather Data: The app fetches weather data for the given city from the OpenWeather API.
  • Weather Details: Displays the current temperature, weather condition, humidity, and wind speed.
  • Material UI Styling: Beautiful, responsive UI built using Material UI.

Technologies Used

  • Frontend: React.js
  • Bundler: Vite & Material UI
  • API: OpenWeather API
  • Deployment Platform: Netlify

Setup and Installation

Follow the steps below to get your local copy up and running:

Prerequisites

Ensure you have Node.js installed on your machine.

Steps

  1. Clone the repository:

    git clone https://github.com/your-username/weather-widget.git
    cd weather-widget
  2. Install dependencies:

    npm install
  3. Set up your OpenWeather API key:

    • Sign up for a free API key at OpenWeather.

    • Create a .env file in the root directory of the project and add your API key:

      REACT_APP_OPENWEATHER_API_KEY=your-api-key
      
  4. Run the development server:

    npm run dev

    Visit http://localhost:3000 to view the app in your browser.

Acknowledgments

  • OpenWeather API for providing the weather data.
  • Material UI for beautiful and responsive UI components.
  • Vite for providing an extremely fast build tool.
  • Netlify for easy deployment and hosting.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Weather-Widget is a React app that lets users check real-time weather by entering a city name, using the OpenWeather API. Styled with Material UI and deployed on Netlify for easy access.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published