Skip to content

htrap1211/Weather-v2.0.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Weather v2.0.0

This is a simple command-line application that provides current weather information for a given city. The application utilizes the OpenWeatherMap API to fetch current weather data.

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/htrap1211/Weather-v2.0.0.git
  2. Navigate to the project directory:

    cd Weather-v2.0.0
  3. Install the required dependencies:

    npm install
  4. Create a .env file in the root directory of the project and set your OpenWeatherMap API key as the value for API_KEY:

    API_KEY=<your OpenWeatherMap API key>
    
  5. You're ready to use the application!

Usage

To use the application, simply run the index.js file with node, passing the name of the city as an argument:

node index.js <city name>

For example:

node index.js London

The application will then output the current weather information for the specified city.

Contributing

If you'd like to contribute to this project, please feel free to open a pull request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages