Skip to content

This is a command line interface (CLI) weather app built in Node.js which makes use of asynchronous HTTP requests. This is asynchronous and non-blocking application which makes use of Google's geo-location API and dark sky API

Notifications You must be signed in to change notification settings

patilankita79/NodeJS_WeatherApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

NodeJS_WeatherApp

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.

Dependencies

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
Run the following commands to save following dependencies
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

About

This is a command line interface (CLI) weather app built in Node.js which makes use of asynchronous HTTP requests. This is asynchronous and non-blocking application which makes use of Google's geo-location API and dark sky API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published