alexa / alexa-skills-kit-sdk-for-nodejs

The Alexa Skills Kit SDK for Node.js helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
Apache License 2.0
3.12k stars 736 forks source link

Testing Skills Locally #70

Closed tlovett1 closed 7 years ago

tlovett1 commented 7 years ago

Hey all, I built a utility for testing Alexa skills built with this SDK locally. The tool starts up an Express server so you can test various requests/intents/slots. Hopefully this helps some people.

https://www.npmjs.com/package/alexa-skill-test

mvdivotfixer commented 7 years ago

Cool beans, @tlovett1. Tip for others coming to this from Lambda or Lambda-Local testing, if you are setting the AppID for security as recommended by the SDK, this will initially cause failures when testing with this tool. It obviously provides a different AppID in the request than Lambda does, so for local testing I just set my AppId to undefined.

ghost commented 7 years ago

Very cool @tlovett1! Thanks for this.

muneebaahmad commented 6 years ago

After hours of research, I was finally able to test my alexa skill locally. I thought it would be a good idea to put all the instructions in one place. So here you go:

How to test alexa skill locally