- Run npm install to install the dependencies.
- Go to
www.forecast.ioto register for a new account and get your key for accessing the weather data - Replace all the variable
${keys}in the weather url with your key inweather.jsandapp-promise.jswith your key
To run the app, follow the following steps:
- open your terminal and navigate to the project directory
- run the command
node app.js -a 'Your address or zip code'ornode app-promise.js -a 'Your address or zip code' - The temperature for the current address will be displayed in your terminal.
Make sure you are connected to internet