Jump to content

Sails.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ceyockey (talk | contribs) at 02:00, 22 July 2017 (Added tags to the page using Page Curation (refimprove)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Sails.js
Developer(s)Mike McNeil and others
Initial release2012; 13 years ago (2012)
Repository
Written inJavaScript
Operating systemCross-platform
PlatformNode.js
TypeWeb framework
LicenseMIT License
Websitesailsjs.com

Sails.js (or Sails)[1], is a Model-View-Controller (MVC) web application framework developed atop the Node.js environment,[2]: 1, 19  released as free and open-source software under the MIT License.[3][non-primary source needed] It is designed to make it easy to build custom, enterprise-grade Node.js web applications and APIs.[3][non-primary source needed] Emulating the MVC architecture of other frameworks, like Ruby on Rails,[2]: 19  it offers similar pattern and familiarity, reducing the cognitive burden when switching between other frameworks/languages.

Features

Sails.js offers a host of features and attributes. Because it is built on Node.js and Express.js,[citation needed] it enables applications to be built with 100% JavaScript. This not only includes models, views, and controllers; but also configuration files and adapters (e.g., database).

Like Ruby on Rails,[1] Sails.js provides an Object-relational mapping interface, using Waterline.js, which abstracts the database interaction. This enables a uniform API regardless of the underlying database being used.[4]

A number of other packages are included to enable fast auto-generated REST APIS, WebSockets by default using Socket.io;[1] and compatibility features making it front-end agnostic so that many tools and frameworks (AngularJS, React.js, Android, iOS, etc) are supported.

Community Acclaim

As compared to other libraries/frameworks, like FeathersJS, Sails offers a host of features out of the box and leads as the generally accepted Node.js framework for both full-stack development and REST APIs. [5]

References

  1. ^ a b c Krol, Jason (2014). Web Development with MongoDB and Node.js. Packt. pp. PT455. ISBN 9781783987313 – via Google Books (Preview).
  2. ^ a b Shahid, Shaikh (2016). Sails.js Essentials. Birmingham, UK: Packt. ISBN 9781783554546. OCLC 944986529 – via Google Books (Preview).
  3. ^ a b "Sails.js | Realtime MVC Framework for Node.js". The Sails Company. Retrieved 21 July 2017. {{cite web}}: Cite has empty unknown parameter: |dead-url= (help)
  4. ^ "Waterline.js home page".
  5. ^ "Slant.co's Sails.js Review".