Sails.js

{{short description|Open-source web framework built on Node.js}}

{{COI|date=December 2021}}

{{Infobox Software

| name = Sails.js

| logo = SailsJS_logo.png

| logo alt = Sails.js brand logo

| logo caption = Sails.js brand logo

| developer = Mike McNeil and others

| released = {{Start date and age|2012}}

| operating system = Cross-platform

| platform = Node.js

| programming language = JavaScript

| license = MIT License

| website = {{URL|https://sailsjs.com/}}

| genre = Web framework

| latest release version = 1.5.11

| latest release date = {{release date and age|2024|05|24}}{{cite web

| url = https://www.github.com/balderdashy/sails/releases

| title = Releases · balderdashy/sails

| website = github.com

| access-date = 2024-11-14

}}

| repo = {{URL|https://github.com/balderdashy/sails|Sails.js Repository}}

}}

Sails.js (or Sails){{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)}} is a model–view–controller (MVC) web application framework developed atop the Node.js environment,{{Cite book|url=https://books.google.com/books?id=01hLDAAAQBAJ|title=Sails.js Essentials|last=Shahid|first=Shaikh|publisher=Packt|year=2016|isbn=9781783554546|location=Birmingham, UK|oclc=944986529|via=Google Books (Preview)}}{{Rp|1, 19}} released as free and open-source software under the MIT License.{{cite web|url=https://www.npmjs.com/package/sails|title=sails|access-date=21 July 2017|publisher=npm, inc.}} It is designed for Node.js web applications and APIs {{cite web|url=https://sailsjs.com|title=Sails.js {{!}} Realtime MVC Framework for Node.js|publisher=The Sails Company|access-date=21 July 2017}} with similar architecture to Ruby on Rails.{{Rp|19}}

Features

Sails.js is built on Node.js and Express.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, Sails.js provides an object-relational mapping interface using Waterline.js, which abstracts the database interaction layer.{{cite web|url=http://waterlinejs.org/|title=Waterline.js home page}}

A number of other packages are included to enable fast auto-generated REST APIs, WebSockets by default using Socket.io; and compatibility features making it front-end agnostic (AngularJS, React.js, Android, iOS, etc.).

See also

References

{{reflist}}