sails
Version:
API-driven framework for building realtime apps, using MVC conventions (based on Express and Socket.io)
23 lines (18 loc) • 554 B
JavaScript
/**
* Module dependencies
*/
var Sails = require('./app');
// Instantiate and expose a Sails singleton
// (maintains legacy support)
module.exports = new Sails();
// Expose constructor as `.Sails` for convenience/tests:
// =========================================================
// To access the Sails app constructor, do:
// var Sails = require('sails').constructor;
// or:
// var Sails = require('sails').Sails;
//
// Then:
// var newApp = new Sails();
// =========================================================
module.exports.Sails = Sails;