This is a demo showing how simple it is to use SendGrid with Node.js. Using a simple static file server and websockets, this demo takes emails written in Markdown and sends them using the SendGrid mail API in real time.
Check out the live demo here:
http://sendgrid-markdown-demo.jit.su/
This guide assumes you already have node and npm installed. If not, you should check out NVM which makes installing them super easy.
git clone git://github.com/theycallmeswift/SendGrid-Markdown-Demo.git
cd SendGrid-Markdown-Demo
npm install
Open up config.json
in your favorite editor and fillout the settings.
{
"fromAddress": "MarkdownDemo@sendgrid.com",
"username": "your_sendgrid_username",
"key": "your_sendgrid_key"
}
node server.js
If you already have the jitsu package installed, then it's as simple as:
jitsu deploy