Skip to content

ujjayant-kadian/weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App

The Weather App is a web application that provides weather information, packing suggestions (by taking weather and air pollution into consideration) based on the location you specify or your current location.

Table of Contents

Features

  • Fetch weather data for a specific city.
  • Get weather information for your current location.
  • Display weather details including temperature, rainfall, and wind speed.
  • Provides packing suggestions based on temperature and the chance of rain.
  • Alerts you to wear a mask when air pollution levels (PM2.5) exceed 10.
  • View a summary of weather data for upcoming days.
  • A user-friendly interface.

Getting Started

These instructions will help you set up and run the Weather App on your local machine.

  1. Clone this repository to your local machine:

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

    cd weather-app
    
  3. Install the required dependencies using npm package manager:

    npm install
    
  4. Create an account on OpenWeatherMap to obtain an API key.

  5. Replace your api key in routes/forecast.js:

    const apiKey = {YOUR_API_KEY}

  6. Run the application:

    npm start

The application should now be running locally at http://localhost:3000. Open it in the browser to play with the app.

Usage

  • Enter the name of a city in the "City" input field.
  • Optionally, provide a two-letter country code in the "Country Code" input field.
  • Click the "Get Weather" button to retrieve weather information for the specified location.
  • Click "Get Weather for Current Location" to fetch weather data based on your current location.
  • The application will display weather information, packing suggestions, and a summary of upcoming weather.

CREATED BY UJJAYANT KADIAN AS A PART OF ASSIGNMENT 1 (INTERNET APPLICATIONS)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published