8000 GitHub - csp5096/LambdaWeatherAPI: Weather API generated through an AWS Lambda Function
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

csp5096/LambdaWeatherAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Service Lambda Application

An AWS Lamba REST function designed to query weathe 7E67 r information by city and country, using the OpenWeatherMap API as the Base URL.

Query Instructions

Design

Language(s):

  • Node.js

Tools:

  • AWS Lambda
  • AWS IAM
  • openweathermap.org API
  • Serverless Framework
  • Mocha

Dependencies:

  • babel-core: 6.26.3
  • chai: 4.1.2
  • chai-http: 4.0.0
  • mocha: 5.2.0
  • node-fetch: 2.1.2
  • dotenv: 6.0.0

AWS Settings

AWS Lamba Function Settings (Amazon API Gateway):

-- Method Request (GET):

  • URL Query String Parameters (Name): city, country_code
  • Required Check-box: True (Both Parameters)

-- Integration Request (GET):

  • URL Query String Parameters (Name): city, country_code
  • Mapped from: method.request.querystring.city, method.request.querystring.country_code

AWS Lambda Function User Settings (IAM):

  • AWSLambdaFullAccess
  • AdministratorAccess
  • CloudWatchLogsFullAccess
  • AmazonAPIGatewayAdministrator

Testing Instructions:

Unit Test(s):

  • Change Directory: service
  • Command: npm test

Servierless Build Instructions (Test):

  • AWS Login Credentials
  • Change Directory: service
  • Command: npm test

Author

  • Christopher S. Powell

About

Weather API generated through an AWS Lambda Function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0