Sails.js
Sails.js brand logo | |
Developer(s) | Mike McNeil and others |
---|---|
Initial release | 2012 |
Development status | Active |
Written in | JavaScript |
Operating system | Cross-platform |
Platform | Node.js |
Type | Web framework |
License | MIT License |
Website |
sailsjs |
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 2 3 Krol, Jason (2014). Web Development with MongoDB and Node.js. Packt. pp. PT455. ISBN 9781783987313 – via Google Books (Preview).
- 1 2 Shahid, Shaikh (2016). Sails.js Essentials. Birmingham, UK: Packt. ISBN 9781783554546. OCLC 944986529 – via Google Books (Preview).
- 1 2 "Sails.js | Realtime MVC Framework for Node.js". The Sails Company. Retrieved 21 July 2017.
- ↑ "sails". npm, inc. Retrieved 21 July 2017.
- ↑ Rajput, Mehul (12 December 2016). "Top Reasons Why Sails.js Is The Best Node.js Web Framework". mindinvenory. Mindinventory. Retrieved 22 July 2017.
- 1 2 Yang, Chuoxian. "Comparison Of Four Popular Node.js Frameworks | Toptal". toptal. Toptal, LLC. Retrieved 22 July 2017.
- ↑ "Waterline.js home page".
- ↑ "Slant.co's Sails.js Review".