Enterprise MVC framework for Node.js applications
Sails.js mimics the MVC architecture of Ruby on Rails inside Node.js, providing out-of-the-box support for WebSocket connections and database adapters.
// api/controllers/UserController.js
module.exports = {
find: async function (req, res) {
return res.json(await User.find());
}
};