Skip to content

A simple and intuitive weather application built with React that allows users to check current weather conditions and forecasts for any location.

Notifications You must be signed in to change notification settings

baberlabs/weather-app

Repository files navigation

Weather App

A simple and intuitive weather application built with React that allows users to check current weather conditions and forecasts for any location.

Deployed Site

Visit weather-by-baberr.netlify.app

Features

  • Search for weather information by location
  • Display current weather conditions including temperature, humidity, wind speed, and UV index
  • Show a 3-day weather forecast
  • Provide detailed hourly weather information for the current day
  • Responsive design for various screen sizes

Technologies Used

  • React
  • Material-UI
  • Axios for API requests
  • Weather API (weatherapi.com)

Installation

  1. Clone the repository:
    git clone https://github.com/baberlabs/weather-app.git
    
  2. Navigate to the project directory:
    cd weather-app
    
  3. Install dependencies:
    npm install
    
  4. Create a .env file in the root directory and add your Weather API key:
    VITE_API_KEY=your_api_key_here
    
  5. Start the development server:
    npm run dev
    

Usage

  1. Enter a location in the search bar on the home page.
  2. Click the "Search" button or press Enter to view the current weather and forecast.
  3. Click "More Details" to see hourly weather information for the current day.
  4. Use the "Go Back" button to return to previous screens.

Screenshots

image

image

image

image

Components

  • App.jsx: Main component managing the application state and rendering child components
  • Search.jsx: Handles user input for location search
  • WeatherData.jsx: Displays current weather conditions and 3-day forecast
  • MoreDetails.jsx: Shows detailed hourly weather information for the current day

API

This application uses the Weather API to fetch weather data. You'll need to sign up for a free API key to use this application.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.

About

A simple and intuitive weather application built with React that allows users to check current weather conditions and forecasts for any location.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published