Skip to content

abel-masila/node-weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command Line node Js weather App

This simple app makes use of the google geocode api and the darksky weather api to get the current weather update.

To run this app...

  • git clone this project and run npm install -To test the application, type in node app-promise.js -a 'Nairobi'

I am using axios to return a promise , so if your request is resolved, the out put should be something like:

alt text

If you add an address which does'nt exist, the promise is rejected and returns an error which looks like:

alt text

This app uses axios,yargs packages to get everything done.

Dark Sky API-Docs

Axios

yargs

Google maps Geocode api

About

learn node async

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published