2024-04-23
3717
#node
Precious Luke
66724
Apr 23, 2024 â‹… 13 min read

Building and structuring a Node.js MVC application

Precious Luke Open source crusader. I love building stuff with great technology.

Recent posts:

AI roundtable AI proof skills

What are the AI-proof skills every frontend developer needs?

The AI freight train shows no signs of slowing down. Seven senior developers discuss how frontend devs can make themselves indispensable in the age of AI.

Matt MacCormack
Jul 23, 2025 â‹… 4 min read

Angular has grown up — and the best is yet to come

It’s never been a better time to be an Angular developer. Reflect on the highlights of Angular’s evolution from its early days to the recent v20 release.

Lewis Cianci
Jul 22, 2025 â‹… 10 min read
JavaScript logo on abstract neon background with red and blue light trails

Iterator helpers: The most underrated feature in ES2025

ES2025 adds built-in iterator helpers to JavaScript, enabling lazy .map(), .filter(), .take(), and more; ideal for processing large or infinite data streams efficiently.

Elijah Asaolu
Jul 21, 2025 â‹… 6 min read
MCP Servers

The top 15 MCP servers for your AI projects

Explore 15 essential MCP servers for web developers to enhance AI workflows with tools, data, and automation.

Ikeh Akinyemi
Jul 21, 2025 â‹… 17 min read
View all posts

2 Replies to "Building and structuring a Node.js MVC application"

  1. Hi! A very usefuk tutorial. It has helped me to definetively understand the MVC architecture. Thanks a lot.

    I have only one doubt: which is the right way to inform the user that are, for example, empty fields? The code line “console.log(“Fill empty fields”);” I think that is not visible for the user. That is, which is the right way to show input errors (duplicate name, not match password, …) on the ‘view’ from the ‘controller’?

    Thanks.

  2. It’s an awful example of MVC. Controllers should have no business logic inside of them! The Model in MVC is not just a Mongo model but the whole business logic with managers, services, db models, etc.

Leave a Reply