Sails.js: Difference between revisions

Content deleted Content added
added book reference for one revised opening passage.
Update last sails release
 
(32 intermediate revisions by 23 users not shown)
Line 1:
{{short description|Open-source web framework built on Node.js}}
{{COI|date=December 2021}}
{{Infobox Software
| name = Sails.js
| statuslogo = ActiveSailsJS_logo.png
| logo alt = Sails.js brand logo
| logo caption = Sails.js brand logo
| developer = [[Mike McNeil]] and others
| status = Active
| released = {{Start date and age|2012}}
| operating system = [[Cross-platform]]
| platform = [[Node.js]]
| programming language = [[JavaScript]]
| license = [[MIT License]]
| website = {{URL|httphttps://sailsjs.com/}}
| genre = [[Web framework]]
| latest release version = 1.5.11
| latest release date = {{release date and age|2024|05|24}}<ref>{{cite web
| url = https://www.github.com/balderdashy/sails/releases
| title = Releases · balderdashy/sails
| website = github.com
| access-date = 2024-11-14
}}</ref>
| repo = {{URL|https://github.com/balderdashy/sails|Sails.js Repository}}
}}
 
'''Sails.js''' (or '''Sails'''),<ref name=":1">{{Cite book|url=https://books.google.com/books?id=hZifBAAAQBAJ&dq=Sails.js&pg=PT455|title=Web Development with MongoDB and Node.js|last=Krol|first=Jason|publisher=Packt|year=2014|isbn=9781783987313|pages=PT455|via=Google Books (Preview)}}</ref> is a [[Model–view–controller|Model-View-Controllermodel–view–controller]] (MVC) [[web application framework]] developed atop the [[Node.js]] environment,<ref name=":0">{{Cite book|url=https://books.google.com/books?id=01hLDAAAQBAJ|title=Sails.js Essentials|last=Shahid|first=Shaikh|publisher=PaktPackt|year=2016|isbn=9781783554546|___location=Birmingham, UK|pages=|oclc=944986529|via=Google Books (Preview)}}</ref>{{Rp|1, 19}} released as [[free and open-source software]] under the [[MIT License]].<ref Itname="SailsJS" is/><ref designedname="NPM">{{cite toweb|url=https://www.npmjs.com/package/sails|title=sails|access-date=21 makeJuly it2017|publisher=npm, easyinc.}}</ref> toIt buildis custom,designed enterprise-gradefor Node.js [[web application]]s and [[API]]s. <ref name="SailsJS">{{cite web|url=https://sailsjs.com|title=Sails.js home page{{!}}</ref> Emulating theRealtime MVC architectureFramework offor otherNode.js|publisher=The frameworks,Sails likeCompany|access-date=21 RubyJuly on2017}}</ref> Rails, it offerswith similar patternarchitecture andto familiarity,[[Ruby reducingon theRails]].<ref cognitive burden when switchingname=":0" between other frameworks/languages.>{{Rp|19}}
 
'''Sails.js''' (or '''Sails'''), is a [[Model–view–controller|Model-View-Controller]] (MVC) [[web application framework]] developed atop the [[Node.js]] environment,<ref>{{Cite book|url=https://books.google.com/books?id=01hLDAAAQBAJ|title=Sails.js Essentials|last=Shahid|first=Shaikh|publisher=Pakt|year=2016|isbn=9781783554546|___location=Birmingham, UK|pages=|oclc=944986529|via=Google Books (Preview)}}</ref>{{Rp|1}} released as [[free and open-source software]] under the [[MIT License]]. It is designed to make it easy to build custom, enterprise-grade Node.js [[web application]]s and [[API]]s.<ref name="SailsJS">{{cite web|url=https://sailsjs.com|title=Sails.js home page}}</ref> Emulating the MVC architecture of other frameworks, like Ruby on Rails, 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]], it enablesenabling applications to be builtwritten with 100%in JavaScript. This not only includes models, views, and controllers; but also, configuration files, and adapters (e.g., database). Similar to Ruby on Rails,<ref etcname=":1" /> Sails.js provides an [[object-relational mapping]] interface using Waterline.js, which abstracts the database interaction layer.<ref name="WaterlineJS">{{cite web|url=http://waterlinejs.org/|title=Waterline.js home page}}</ref>
A number of other packages are included behind the scenes to enable fast '''auto-generated [[REST APIS'''API]]s, '''WebSockets'''[[WebSocket]]s by default using [[Socket.io]],;<ref name=":1" /> and compatibility features making it '''front-end agnostic''' so that many tools and frameworks ([[AngularJS]], [[React.js]], [[Android (operating system)|Android]], [[iOS]], etc.) are supported.
Like Ruby on Rails, Sails.js provides an [[ORM|Object-relational mapping]] interface, using [[Waterline.js]], which abstracts the database interaction. This enables a uniform API regardless of the underlying database being used.<ref name="WaterlineJS">{{cite web|url=http://waterlinejs.org/|title=Waterline.js home page}}</ref>
 
== See also ==
A number of other packages are included behind the scenes to enable fast '''auto-generated REST APIS''', '''WebSockets''' by default using [[Socket.io]], and compatibility features making it '''front-end agnostic''' so that many tools and frameworks ([[AngularJS]], [[React.js]], [[Android]], [[iOS]], etc) are supported.
 
* [[JavaScript framework]]
* [[JavaScript library]]
 
== 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. <ref name="Slant.co's Sails.js Review">{{cite web|url=https://www.slant.co/options/1283/~sails-js-review|title=Slant.co's Sails.js Review}}</ref>
== References ==
{{reflist}}
Line 30 ⟶ 41:
== External links ==
{{NodeJs}}
 
[[Category:JavaScript web frameworks]]
[[Category:Web frameworks]]