A command-line based Node.js weather app from the Codeburst.io tutorial found here.
You'll need Node.js installed and NPM (packaged with Node) or Yarn, depending on your favourite flavour of package manager.
- Enter
git clone https://github.com/hikurangi/node-weather.git && cd node-weather
. - Then
npm i
oryarn
to install dependencies. - Get an API key from https://openweathermap.org/.
- Create a
.env
file in thenode-weather
folder and add the following line with your API key where it belongs, as in:OWM_KEY=your key here
. - Check the weather in your city by running
npm start Eketahuna
oryarn start Bulls
. - Enjoy!