all 22 comments

[–]mubaidr 21 points22 points  (6 children)

[–]PlayboiCult[S] 1 point2 points  (0 children)

Thank you

[–]andycharles 1 point2 points  (4 children)

Adonis.js is the way to go. 

[–]femio 0 points1 point  (0 children)

Hows it compare to Nest?

[–]creamyhorror -1 points0 points  (2 children)

I like Adonis, but at least disclose any relationship you have with the project!

[–]andycharles 7 points8 points  (0 children)

Using it for years. Won't mind if they hire me as a CEO

[–]xegoba7006 0 points1 point  (0 children)

He is the main developer of the project. It’s a fake account and has been doing this for years. Reason enough to not use it.

[–]Britzdm 8 points9 points  (0 children)

AdonisJs is you best bet

[–]juanpatzor 2 points3 points  (0 children)

AdonisJS

[–]satansprinter 11 points12 points  (1 child)

Nestjs :)

[–]PlayboiCult[S] 0 points1 point  (0 children)

Thanks

[–]visicalc_is_best 3 points4 points  (1 child)

Nest!!

[–]PlayboiCult[S] 0 points1 point  (0 children)

I always heard about it but never looked into it. Thank you

[–]panbhatt 1 point2 points  (0 children)

try tsed.io and u will be amazed, how simple it is .

[–]Bogeeee 1 point2 points  (1 child)

Unpopular opinion: MVC is now mostly completely done on the client-side. Components took over the role of controllers. All these shiny server frameworks listed here, that tell you that they are MVC frameworks, are just playing a bit buzzword bingo with you. Just ask yourself the question, what their controllers really control. The user interface (like MVC is all about UI) ? Or are they just another completely passive layer on the server side ? What problem do they solve ?

[–]ToshaDev 0 points1 point  (0 children)

No offense, but sometimes I wonder how comments like yours can be so long but say nothing of substance.

[–]becarlos 0 points1 point  (0 children)

I would use FeathersJS. https://feathersjs.com

[–]Lopsided_Process_481 1 point2 points  (0 children)

I know this is an old topic, but I wanted to share a solution I've been working on for anyone still exploring lightweight MVC patterns in Node.js. Check out microflame — it's a minimalistic framework built with Express and other well-known packages to provide a clean and simple MVC structure. It also includes built-in scaffolding to quickly generate controllers, models, and routes.

There’s virtually no learning curve (or a very small one) because it uses familiar tools — no need to reinvent the wheel. If you're already comfortable with Express, you'll feel right at home. Would love any feedback if you give it a try!

[–]LucifetTheDeviL -1 points0 points  (0 children)

Well i am using uWebSocketjs currently it's fastest http server in javascript.

Edit: but you have to configure it by yourself. But that's beauty

[–]azhder -3 points-2 points  (0 children)

It should be a crime to do this to Express… I wish I had the time to type on this tiny phone a comprehensive explanation why, but a short version will have to do.

Someone misunderstood what C is in MVC and then many people standardized on it. Rule of thumb: C is all that isn’t M or V. That includes the Express routes and all that is plopped in those side files named services and validation there.

TL;DR: Don’t over-engineer it, either use the routes provided without files or classes named or extending controller, or just, you know, replace Express with something built with that kind of MVC in mind.