This is a CLI weather app built in Node.js which makes use of asynchronous HTTP requests. The application communicates with third party APIs ->Google's geo-location API and dark sky API.
Asynchronous, non-blocking application => app will continue to run while it waits for someting else to happen
Google geo location API takes address and returns lattitude and longitude co-ordinates whereas Dark Sky API takes lattitude and longitude co-ordinates as input and generates weather information.
Third party NPM modules used in this application are
- request -> To make http request
- yargs -> To encode user input[to format the address given as input by user]
- axios -> Promise based HTTP client for the browser and node.js
npm install request --save
npm install yargs --save
For Reference, https://maps.googleapis.com/maps/api/geocode/json?address=1301%20lombard%20street%20philadelphia
To get the live weather data from the latitude and longitude passed, use Dark Sky Weather API, https://darksky.net/dev