Skip to content

codefellows/api_test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Underground API example

This is a teaching example for consuming APIs. This ExpressJS app acts as an API proxy to the Weather Underground API. It returns JSON to the client.

Prerequisites

  • A working NodeJS environment on your machine
  • A Weather Underground API key. Get one here

Install and Run

Routes examples:

Put any string after the trailing slash in /current/...

 /current/:city-name
 /current/:city-name,state

Homework

  • instead of returning all the JSON, return only the current temperature in F or C
  • create a new route to show the forecast gif image. For example if the forecast is rain, an image of rain should be shown. Don't duplicate the request code

LICENSE

MIT

About

Underground API example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%