Skip to content

Node Weather Application - Returns the current weather and/or 5 day forecast in the cmd prompt

Notifications You must be signed in to change notification settings

bmorelli25/node-async-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-async-weather

A simple Node Weather Application


Node js application that accepts a location input or uses the users IP address to determine the users location. Once location is established, the current weather is provided for said location. This application utilizes:


###HACKTOBERFEST! This project was featured during DigitalOcean's 2016 HACKTOBERFEST! Thanks to everyone who contributed in both discussion and coding!


How to run the app locally:

  1. Run npm install to install all needed dependencies.

  2. Navigate to OpenWeatherMap's and get a free API key.

  3. Set your API Key. There are two methods:

    • Set an environment variable: API_KEY

      Example: API_KEY=yourKeyHere

      Windows Example: SET API_KEY=yourKeyHere

    • Create a .env file in the root of the project with the content of API_KEY=yourKeyHere

  4. Request the weather for your current location (as determined by IP) by running: npm start

    • Specify any location by using the location flag: npm start -- -l Boston
  5. Request the weather forecast for your current location (as determined by IP) by running: npm start -- -f

    • Specify any location as you would with the location flag: npm start -- -f Denver
    • Note that you can specify only one location for both parameters or specify the location for both parameters

About

Node Weather Application - Returns the current weather and/or 5 day forecast in the cmd prompt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published