Upgrade to Pro — share decks privately, control downloads, hide ads and more …

2014 Intro to Sails (v0.10.x)

Mike McNeil
September 17, 2014

2014 Intro to Sails (v0.10.x)

This talk was given in a few different permutations in 2014-- at Powered By JavaScript in St. Louis, MO, then as the keynote presentation for Dev Workshop Conference in Indianapolis, then NorfolkJS in Norfolk, VA, and finally Nodevember in Nashville, TN.

See http://lanyrd.com/profile/mikermcneil/sessions/ for more information.

Mike McNeil

September 17, 2014
Tweet

More Decks by Mike McNeil

Other Decks in Technology

Transcript

  1. We design and develop javascript apps for enterprise and startup

    customers. i have a startup called balderdash
  2. I’m a sucker for Node.js. I wrote Sails. Disclaimers I

    don’t like CoffeeScript very much.
  3. You don't want to be writing all these system calls.

    You need something that gives you… an ORM abstraction, or something.
  4. Sails is a backend web framework. (uses Socket.io for optional

    WebSocket support) (built on Express) (runs on the server)
  5. same server-side code function (req, res) {! if (req.isSocket) {!

    return res.json({! hello: ‘socket’! }! }! ! return res.json({! hello: ’http’! });! }
  6. Put your data in the container that makes the most

    sense for it. Users Products Orders Activity ExternalUsers Administrators
  7. Put your data in the container that makes the most

    sense for it. Then join it together. Products Users Administrators Activity Orders ExternalUsers
  8. • Released v0.10 in late Summer 2014 • ~7,600 Github

    stars • ~750-1500 npm downloads / day • ~100 folks in #sailsjs on freenode on average • ~1,100 questions tagged on SO Community