Skip to content

signalwire/lambda-weather-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Lambda function for Weather API

This repository holds the snippet to demonstrate how to deploy and test a lambda function with OpenWeatherMap API

Prerequisite

  • Install Serverless by running npm install -g serverless
  • An OpenWeatherMap API key from here
  • A NodeJs environment

Running this project

  • Create a new .env file from the .env.example file and enter your OPENWEATHER_KEY
  • Add OPENWEATHER_KEY value in your serverless.yml
  • Run npm install to install your dependencies

Local development

It is also possible to emulate API Gateway and Lambda locally by using serverless-offline plugin. In order to do that, execute the following command:

serverless offline

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published