Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This is a demo using Node.js and websockets to send markdown formatted emails powered by SendGrid

branch: master
README.md

SendGrid Markdown Demo

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.

Demo

Check out the live demo here:

http://sendgrid-markdown-demo.jit.su/

Install && Setup

This guide assumes you already have node and npm installed. If not, you should check out NVM which makes installing them super easy.

Step 1: Clone the repo

git clone git://github.com/theycallmeswift/SendGrid-Markdown-Demo.git
cd SendGrid-Markdown-Demo

Step 2: Install the dependencies

npm install

Step 3: Edit your SendGrid settings

Open up config.json in your favorite editor and fillout the settings.

{
  "fromAddress": "MarkdownDemo@sendgrid.com",
  "username": "your_sendgrid_username",
  "key": "your_sendgrid_key"
}

Step 4: Run locally

node server.js

Deploying

Nodejitsu

If you already have the jitsu package installed, then it's as simple as:

jitsu deploy

Something went wrong with that request. Please try again.