3 ms·
Yes, express is very simple, and easy to learn and write. It's also the most popular web framework for node.js. It's less like rails/django and more like sinat
by andypants 14y ago
Yes, express is very simple, and easy to learn and write. It's also the most popular web framework for node.js.
It's less like rails/django and more like sinatra/flask.
- mikermcneil 14y agoHey guys, I wrote Sails.js. The controllers are just sets of Express middleware. The reason I did it this way is that I wanted a conventional abstraction (MVC) without the burden of a new API. The only real "magic" here is how Sails handles Socket.io requests using the same controllers. Sails generates req/res objects for socket requests and allows you to handle WebSocket requests in the same code base as the rest of your app. If you need to do more custom stuff, you can still directly access Socket.io through sails.io, and each request object that came from a socket request contains req.socket, which gets you access to the socket which sent the message.