HOME

TheInfoList



OR:

Sails.js (or Sails) is a
model–view–controller Model–view–controller (MVC) is a software architectural pattern commonly used for developing user interfaces that divide the related program logic into three interconnected elements. This is done to separate internal representations of infor ...
(MVC) web application framework developed atop the Node.js environment, released as
free and open-source software Free and open-source software (FOSS) is a term used to refer to groups of software consisting of both free software and open-source software where anyone is freely licensed to use, copy, study, and change the software in any way, and the source ...
under the
MIT License The MIT License is a permissive free software license originating at the Massachusetts Institute of Technology (MIT) in the late 1980s. As a permissive license, it puts only very limited restriction on reuse and has, therefore, high license co ...
. It is designed to make it easy to build custom, enterprise-grade Node.js
web application A web application (or web app) is application software that is accessed using a web browser. Web applications are delivered on the World Wide Web to users with an active network connection. History In earlier computing models like client-serve ...
s and APIs. Emulating the MVC architecture of other frameworks, like
Ruby on Rails Ruby on Rails (simplified as Rails) is a server-side web application framework written in Ruby under the MIT License. Rails is a model–view–controller (MVC) framework, providing default structures for a database, a web service, and web ...
, 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. It is built on Node.js and
Express.js Express.js, or simply Express, is a back end web application framework for building RESTful APIs with Node.js, released as free and open-source software under the MIT License. It is designed for building web applications and APIs. It has been ...
, enabling applications to be made with 100% JavaScript. This includes models, views, controllers, configuration files, and adapters (e.g., database). Like Ruby on Rails, Sails.js provides an object-relational mapping interface using Waterline.js, which abstracts the database interaction. This enables a uniform API regardless of the underlying database being used. A number of other packages are included to enable fast auto-generated REST APIs,
WebSocket WebSocket is a computer communications protocol, providing full-duplex communication channels over a single Transmission Control Protocol, TCP connection. The WebSocket protocol was standardized by the Internet Engineering Task Force, IETF as in ...
s by default using Socket.io; and compatibility features making it front-end agnostic so that many tools and frameworks (
AngularJS AngularJS is a discontinued free and open-source JavaScript-based web framework for developing single-page applications. It was maintained mainly by Google and a community of individuals and corporations. It aimed to simplify both the developm ...
,
React.js React (also known as React.js or ReactJS) is a Free and open-source software, free and open-source Front end and back end, front-end JavaScript library for building user interfaces based on Component-based software engineering, components. It i ...
,
Android Android may refer to: Science and technology * Android (robot), a humanoid robot or synthetic organism designed to imitate a human * Android (operating system), Google's mobile operating system ** Bugdroid, a Google mascot sometimes referred to ...
, iOS, etc.) are supported.


See also

* JavaScript framework * JavaScript library


References


External links

{{NodeJs JavaScript web frameworks Web frameworks