Code from Casting Off with Sails.js at Triangle JS meetup