Jump to content

Sails.js

From Wikipedia, the free encyclopedia
Sails.js
Developer(s)Mike McNeiland others
Initial release2012;12 years ago(2012)
Stable release
1.5.7 / July 22, 2023;13 months ago(2023-07-22)[1]
RepositorySails.js Repository
Written inJavaScript
Operating systemCross-platform
PlatformNode.js
TypeWeb framework
LicenseMIT License
Websitesailsjs

Sails.js(orSails)[2]is amodel–view–controller(MVC)web application frameworkdeveloped atop theNode.jsenvironment,[3]: 1, 19 released asfree and open-source softwareunder theMIT License.[4][5]It is designed for Node.jsweb applicationsandAPIs[4]with similar architecture toRuby on Rails.[3]: 19 

Features

[edit]

Sails.js is built on Node.js andExpress.js,enabling applications to be written in JavaScript. This includes models, views, controllers, configuration files, and adapters (e.g., database). Similar to Ruby on Rails,[2]Sails.js provides anobject-relational mappinginterface using Waterline.js, which abstracts the database interaction layer.[6]

A number of other packages are included to enable fast auto-generatedREST APIs,WebSocketsby default usingSocket.io;[2]and compatibility features making it front-end agnostic (AngularJS,React.js,Android,iOS,etc.).

See also

[edit]

References

[edit]
  1. ^"Releases · balderdashy/sails".github.Retrieved2023-09-07.
  2. ^abcKrol, Jason (2014).Web Development with MongoDB and Node.js.Packt. pp. PT455.ISBN9781783987313– via Google Books (Preview).
  3. ^abShahid, Shaikh (2016).Sails.js Essentials.Birmingham, UK: Packt.ISBN9781783554546.OCLC944986529– via Google Books (Preview).
  4. ^ab"Sails.js | Realtime MVC Framework for Node.js".The Sails Company.Retrieved21 July2017.
  5. ^"sails".npm, inc.Retrieved21 July2017.
  6. ^"Waterline.js home page".
[edit]