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.
-
Clone this repository to your local machine:
git clone https://github.com/htrap1211/Weather-v2.0.0.git
-
Navigate to the project directory:
cd Weather-v2.0.0
-
Install the required dependencies:
npm install
-
Create a
.env
file in the root directory of the project and set your OpenWeatherMap API key as the value forAPI_KEY
:API_KEY=<your OpenWeatherMap API key>
-
You're ready to use the application!
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.
If you'd like to contribute to this project, please feel free to open a pull request.