GithubHelp home page GithubHelp logo

optionalg / alexaboilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from objectivesee/alexaboilerplate

0.0 1.0 0.0 7 KB

A boilerplate Alexa Skill with support for uploading to Amazon Lambda and building sample utterences.

JavaScript 100.00%

alexaboilerplate's Introduction

Alexa Boilerplate

Quickly get started developing Amazon Alexa skills for you Amazon Echo. After a few short setup steps you will be able to create a functioning skill and deploy it to Amazon Lambda. The boilerplate app includes two of the best npm modules for creating Alexa skills: alexa-app for providing structure to you application, and grunt-aws-lambda for uploading your code to Amazon Lambda from the command line by simply typing grunt deploy.

Setup

Configuring the sample app is as easy as pasting the ARN of your Lambda function into config/default.json and running npm install. That's it! If you don't know how to get your ARN then read "Creating you Lambda function" below.

{
	"Amazon" : {
		"lambda-arn" : "YOUR ARN HERE",
	}
}

Deploying to Amazon Lambda

grunt makes it easy to deploy code. Just run:

grunt deploy

The Sample Project

Check out index.js for the boilerplate Alexa app. Examples of how to define an intent handler, build sample utterences and schema, and response asynchronously are all included. You can also see example projects located in the examples/ directory.

Creating you Lambda function

Each Alexa skill requires a Lambda function.

  1. Log into the AWS Lambda Console and making sure your region is set to us-east-1
  2. Click "Create Lambda Function"
  3. Choose to skip the "Select blueprint" phase
  4. Give your function a name and description. For the inital code, just type {} which is valid Javascript that does nothing. We will be uploading our code via grunt later.
  5. Set the role and create your function.
  6. Copy the ARN from the top right corner of the function page.

alexaboilerplate's People

Contributors

objectivesee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.