
What is Sails
- Real-time MVC framework built on Node.
- Developed by Mike McNeil with the support of Treeline and Balderdash.
- Convention-over-configuration philosophy.
- Made to mimic other MVC frameworks like Rails

Express & Socket.IO
- Express for handling HTTP requests
- Socket.IO for managing WebSockets.
- Resourceful PubSub
- Client side library sails.io.js
- low-level access to these are available.
Waterline - powerful ORM.
- MySQL, MongoDB, PostgreSQL, Redis, and local disk.
- support for each are available via sails-adapters.
- model validation supported
Asset Pipeline
- Grunt is included by default
- LESS, SASS, Stylus, CoffeeScript, JST, Jade, Handlebars
- Gulp? Overriding Grunt is available via sails-hooks
Extending Sails
-
Generators
- sails new <app name>
- sails generate api user
- sails generate controller <controller name> [actions]
-
Adapters
- sails-mysql
- sails-mongo
- sails-redis
-
Hooks
- sails-auth
- Waterlock
- sails-hook-validation
- sails-generate-bower
- sails-generate-new-gulp (not recommended w/ 0.11)
Other
- Built in Internationalization
- includes a test suite with Mocha
- Blueprint API
- Command Line Interface
Sample User Demo
public demo link:
http://192.241.247.80/user
repo:
https://github.com/nmccartney/sailsUser
Sails JS Overview
By nathan mccartney
Sails JS Overview
- 260