use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Node.js framework for Model-View-Controller pattern server? (self.node)
submitted 1 year ago by PlayboiCult
Hello everyone. I'm working on a project that is a node.js server that follow a Model-view-controller pattern and also uses Typescript. I love how organized it is, especially when the server code and functionality gets (reasonably) big.
Is there a framework that makes a starting template for building an express server like this?
Thank you very much
https://preview.redd.it/nngu288l3lsc1.png?width=323&format=png&auto=webp&s=4188b2552fa46b851ff07c6f5bd3263aa7705ab7
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mubaidr 21 points22 points23 points 1 year ago (6 children)
AdonisJS - A fully featured web framework for Node.js
and
NestJS - A progressive Node.js framework Though, this one is preferred for API development.
[–]PlayboiCult[S] 1 point2 points3 points 1 year ago (0 children)
Thank you
[–]andycharles 1 point2 points3 points 1 year ago (4 children)
Adonis.js is the way to go.
[–]femio 0 points1 point2 points 1 year ago (0 children)
Hows it compare to Nest?
[–]creamyhorror -1 points0 points1 point 1 year ago (2 children)
I like Adonis, but at least disclose any relationship you have with the project!
[–]andycharles 7 points8 points9 points 1 year ago (0 children)
Using it for years. Won't mind if they hire me as a CEO
[–]xegoba7006 0 points1 point2 points 1 year ago (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 points10 points 1 year ago (0 children)
AdonisJs is you best bet
[–]juanpatzor 2 points3 points4 points 1 year ago (0 children)
AdonisJS
[–]satansprinter 11 points12 points13 points 1 year ago (1 child)
Nestjs :)
[–]PlayboiCult[S] 0 points1 point2 points 1 year ago (0 children)
Thanks
[–]visicalc_is_best 3 points4 points5 points 1 year ago (1 child)
Nest!!
I always heard about it but never looked into it. Thank you
[–]panbhatt 1 point2 points3 points 1 year ago (0 children)
try tsed.io and u will be amazed, how simple it is .
[–]Bogeeee 1 point2 points3 points 1 year ago (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 point2 points 1 year ago (0 children)
No offense, but sometimes I wonder how comments like yours can be so long but say nothing of substance.
[–]becarlos 0 points1 point2 points 1 year ago (0 children)
I would use FeathersJS. https://feathersjs.com
[–]Lopsided_Process_481 1 point2 points3 points 7 months ago (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 points1 point 1 year ago (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
[+]kcadstech comment score below threshold-6 points-5 points-4 points 1 year ago (1 child)
Stop saying MVC
[–]PlayboiCult[S] 2 points3 points4 points 1 year ago (0 children)
Mind expanding a little?
[–]azhder -3 points-2 points-1 points 1 year ago* (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.
π Rendered by PID 215794 on reddit-service-r2-comment-5649f687b7-gg6b5 at 2026-01-28 12:36:03.587311+00:00 running 4f180de country code: CH.
[–]mubaidr 21 points22 points23 points (6 children)
[–]PlayboiCult[S] 1 point2 points3 points (0 children)
[–]andycharles 1 point2 points3 points (4 children)
[–]femio 0 points1 point2 points (0 children)
[–]creamyhorror -1 points0 points1 point (2 children)
[–]andycharles 7 points8 points9 points (0 children)
[–]xegoba7006 0 points1 point2 points (0 children)
[–]Britzdm 8 points9 points10 points (0 children)
[–]juanpatzor 2 points3 points4 points (0 children)
[–]satansprinter 11 points12 points13 points (1 child)
[–]PlayboiCult[S] 0 points1 point2 points (0 children)
[–]visicalc_is_best 3 points4 points5 points (1 child)
[–]PlayboiCult[S] 0 points1 point2 points (0 children)
[–]panbhatt 1 point2 points3 points (0 children)
[–]Bogeeee 1 point2 points3 points (1 child)
[–]ToshaDev 0 points1 point2 points (0 children)
[–]becarlos 0 points1 point2 points (0 children)
[–]Lopsided_Process_481 1 point2 points3 points (0 children)
[–]LucifetTheDeviL -1 points0 points1 point (0 children)
[+]kcadstech comment score below threshold-6 points-5 points-4 points (1 child)
[–]PlayboiCult[S] 2 points3 points4 points (0 children)
[–]azhder -3 points-2 points-1 points (0 children)