DEV Community

Discussion on: Recommend me a Node.js framework.

Collapse
 
tunaxor profile image
Angel Daniel Munoz Gonzalez

As @imthedeveloper pointed out, Sails is a pretty good nodejs framework, it's my defacto one when building either personal projects or contracts, I've worked in two small companies in MX that use sails as their default solution.

Waterline is the weakness of sails in my opinion BUT just when you need to do complex stuff. For the most cases it will just work (and since it's node you can always require() anything specialized, like a query builder)

Strong points when it comes to sails:

  1. automatic rest endpoints for your actions(controllers)/models (can be configured)
  2. automatic orm for your model definitions
  3. automatic websockets functionalty (realtime baby)
  4. CORS enabled by default for production environments
  5. Sails CLI to scaffold and start your
  6. REPL of your sails app (one of the most underrated features)

for me sails just works, and if I need something I can always tune up/tune down settings, features of the framework or integrate my custom hooks (plugins), solutions (which I never had needed to use beyond learning purposes)

Collapse
 
imthedeveloper profile image
ImTheDeveloper

Agree on all of this and they have really improved so much over the last year.

You can run sails as a complete MVC project or you can run it headless and build without any views so you are API/ws only.

I personally use it for all of my sites which require a back end. I've had quite a few people starting to use it after they were shocked how quickly I was scaffolding a project during a Hackathon. The blueprint routes are just perfect for it.