Sails.js is a
web framework that makes it easy to build custom, enterprise-grade Node.js apps. It is designed to resemble the MVC architecture from frameworks like Ruby on Rails, but with support for the more modern, data-oriented style of web app & API development. It's especially good for building realtime features like chat.
Since version 1.0, Sails supports await out of the box. This replaces nested callbacks (and the commensurate error handling) with simple, familiar usage:
- ``` js
- var orgs = await Organization.find();
- ```
Installation
- ```sh
- # Get the latest stable release of Sails
- $ npm install sails -g
- ```
Upgrading from an earlier version of Sails?
Upgrade guides for all major releases since 2013 are available on the Sails website under [Upgrading](http://sailsjs.com/upgrading).
Your First Sails Project
Create a new app:
- ```sh
- # Create the app
- sails new my-app
- ```
Lift sails:
- ```sh
- # cd into the new folder
- cd my-app
- # fire up the server
- sails lift
- ```
Compatibility
Sails
actions are compatible with Connect middleware, so in most cases, you can paste code into Sails from an existing Express project and everything will work-- plus you'll be able to use WebSockets to talk to your API, and vice versa.
Tutorial Course
Books
Support
Need help or have a question?
Issue Submission
Contribute
There are many different ways you can contribute to Sails:
Links
Team
Sails is actively maintained with the help of many amazing
contributors. Our core team consists of:
|:---:|:---:|:---:|
Our company designs/builds Node.js websites and apps for startups and enterprise customers. After building a few applications and taking them into production, we realized that the Node.js development landscape was very much still the Wild West. Over time, after trying lots of different methodologies, we decided to crystallize all of our best practices into this framework. Six years later, Sails is now one of the most widely-used web application frameworks in the world. I hope it saves you some time! :)
License
Sails is built around so many great open-source technologies that it would never have crossed our minds to keep it proprietary. We owe huge gratitude and props to Ryan Dahl (@ry), TJ Holowaychuk (@tj), Doug Wilson (@dougwilson) and Guillermo Rauch (@rauchg) for the work they've done, as well as the stewards of all the other open-source modules we use. Sails could never have been developed without your tremendous contributions to the JavaScript community.