Jump to content

Sails.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by BD2412 (talk | contribs) at 03:36, 31 July 2017 (Fixing links to disambiguation pages, improving links, other minor cleanup tasks using AWB). 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][4] It is designed to make it easy to build custom, enterprise-grade Node.js web applications and APIs.[3][5] 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,[6] 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.[6] This enables a uniform API regardless of the underlying database being used.[7]

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.[8]

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. ^ "sails". npm, inc. Retrieved 21 July 2017.
  5. ^ Rajput, Mehul (12 December 2016). "Top Reasons Why Sails.js Is The Best Node.js Web Framework". mindinvenory. Mindinventory. Retrieved 22 July 2017.
  6. ^ a b Yang, Chuoxian. "Comparison Of Four Popular Node.js Frameworks | Toptal". toptal. Toptal, LLC. Retrieved 22 July 2017.
  7. ^ "Waterline.js home page".
  8. ^ "Slant.co's Sails.js Review".