Skip to content

twitchard/purescript-alexa-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purescript-alexa-template

Clone this repo to get started building an Alexa skill for Purescript

Prerequisites

  1. Node.js (and npm)
  2. Purescript, psc-package, and pulp.
npm install -g purescript psc-package pulp
  1. The ask-cli Alexa Skills Kit command-line interface.
npm install -g ask-cli
  1. Initialize ask-cli with your AWS credentials
ask init

Get started

  1. Clone this repo
git clone https://github.com/twitchard/purescript-alexa-template
  1. Build
npm run build-all

3 (optional). You may want to open .ask/config and edit deploy_settings.default.merge.skillManifest.apis.custom.endpoint.uri to be the desired name of your lambda function. Otherwise it will be set to ask-custom-purescript_template-default.

  1. Deploy
npm run deploy-all
  1. Now go to https://console.aws.amazon.com/lambda

select your lambda function, and change the 'Handler' to Main/index.handler.

  1. Test

Go to https://developer.amazon.com/edw/home.html#/skills , log in to your Amazon Developer account, select your newly created skill, click "test" in the side menu, flip the switch to enable the skill for testing.

Then click "Go to Test Simulator" and type "open purescript template" to invoke your skill. Or just say it to Alexa if you have one nearby hooked up to your account.

  1. Edit

Tweak the code to your heart's delight!

About

Clone this repo to get started writing an Alexa Skill in Purescript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published