This is a personal project made to learn a little bit about Command Line Interfaces. It's a simple CLI that fetches weather data from a specific city, provided by the user, returning current local time and temperature, feels like, humidity and wind speed. As a couple of extra features, user can choose which unit of measurement to use and how date and time will be displayed.
- NodeJS v.20 or higher
- OpenWeatherMap - The API that provides weather information.
If you use NVM, just run nvm use
inside of the root folder.
Yarn:
$ yarn
NPM:
$ npm i
For this step, you'll need to generate your api key at OpenWeatherMap website.
Rename the .env.example
file to .env
and update the variables with your settings.
key | description | default |
---|---|---|
API_KEY | OpenWeatherMap's api key | - |
$ npm start