Socket
Book a DemoInstallSign in
Socket

serverless-local-alexa-server

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-local-alexa-server

Develop an Alexa skill without deploying to AWS

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

Serverless Local Alexa Server Plugin (Beta)

Build Status

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

How To

1. Install the plugin

npm install serverless-local-alexa-server --save-dev

2. Add the plugin to your serverless configuration file

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

3. Start the 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"

4. Share localhost with the internet

For example with forwardhq:

forward 5005

5. Configure AWS to use your HTTPS endpoint

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.

License & Credits

Licensed under the MIT license.

Created and maintained by DieProduktMacher.

Keywords

serverless

FAQs

Package last updated on 29 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts