Skip to content

cbernardes/current-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Current Weather

Search the current weather of a given location

Execute the API

node 8.4.0

local mongoDB instance

$ npm install
$ npm start

When executing the application for very first time 5 valid keys will be generated.

Endpoints

  • /key/generate - (GET) Generates a new key.
  • /weather - (GET) Search weather description by location.
    • compulsory params:
      • key, city
    • optional params:
      • country (2-letter code)

Test considerations

Config

Verbose config

  • Set verbose true to see the summary of each test (including performance), but not logs
  • Set verbose false to see the log generated by each test.
"verbose": true

Execute

npm test

or

npm t

About

Current Weather

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published