This project was merged with our local-http-server for Serverless and moved to https://github.com/DieProduktMacher/serverless-local-dev-server
This plugin exposes your Alexa skill functions as local HTTP endpoints, removing the need to deploy every change to AWS Lambda. You can connect these endpoints to your Alexa skill to via forwardhq, ngrok or any other forwarding tool.
This package requires node >= 6.0
npm install serverless-local-alexa-server --save-dev
serverless.yml configuration example:
provider:
name: aws
runtime: nodejs6.10
functions:
hello:
handler: handler.hello
events:
- alexaSkill
# Add serverless-local-alexa-server to your plugins:
plugins:
- serverless-local-alexa-server
serverless local-alexa-server
On default the server listens on port 5005. You can specify another one with the --port argument:
serverless local-alexa-server --port 5000
To automatically restart the server when files change, you may use nodemon:
nodemon --exec "serverless local-alexa-server" -e "js yml json"
For example with forwardhq:
forward 5005
In the Configuration pane, select HTTPS as service endpoint type and specify the forwarded endpoint URL.
As method for SSL Certificate validation select My development endpoint is a sub-domain of a domain that has a wildcard certificate from a certificate authority.
Licensed under the MIT license.
Created and maintained by DieProduktMacher.