Category Archives: Node.js

Alexa App Development – Important Notes

Alexa Develpoment

  • Alexa Skills Kit
  • JavaScript ES6 (EcmaScript 2015) || write code in ES5
    • babel transpiler needed
      • If you use babel. I would suggest you have it compile on save.
  • Break your API calls down into modules
  • Keep your entry page clean and easy to read.

Files

speechAssets/

  • IntentSchema.json
    • JSON file that should contain your Alexa Skill Intents

root “intents

{ "intents" : [] }
Intents is an array that will hold all of your intent objects

Intent Objects

{ "intent": "myIntent", "slots" : [ ] }
The intent object contains the name of your intent under the key intent and any slots you may need.

Slots

"slots": [{ "name": "MySlot", "type": "MY_SLOT_TYPE" }]
Custom slot types are like your parameters. Some one says an Utterance of … “Tell me about my boots” … boots would be the slot type. The Utterance will resemble.
me about my {item}
Where item will be brought into your Alexa Skill Entry Point as an argument with a value of “boots”.

  • SampleUtterances.txt

Upload Images to Amazon S3 Server using Node and Express.js

The code below will walk you through the process to get a working example created for uploading an image file to your Amazon S3 Server. You should already have a bucket created and have your key and secret on hand. We will add those strings to a config file. Once your done you will be able to upload an image file to your Amazon S3 server and verify the image was uploaded by refreshing your S3 Admin portal or view the image from your returned code.

Get the code from Github : https://github.com/wesleyduff/AmazonS3FileUpload

Continue reading

HOW TO: Incorporate an Email Service in your Node.js App with Nodemailer + SendGrid

In this tutorial we will use the github code provided from a previous post to get our Node + Express + Jade app up and running. Then we will talk about how to send emails using nodemailer and SendGrid.

Find the finished code on github here

Continue reading

HOW TO: Setup a Node.js Server using Express.js and Jade

In this tutorial I will cover the steps needed to get started with Node.js and Express.js from the ground up. Express does come with a generator but I do not go into generated Express apps. This tutorial is a bare bones example of getting Node, Express and Jade to work together to display a home page.

Continue reading