Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

346
Vistas
Is it possible to have MVC in sub folders when using node.js express framework?

Is it possible to have MVC in sub folders (modules) when using node.js express framework?

Today I have this structure of my project:

  • Controllers
    • Blog/*
    • Poll/*
    • And many more
  • Models
    • Blog/*
    • Poll/*
    • And many more
  • View
    • Blog/*
    • Poll/*
    • And many more
  • Routes
    • Blog
    • Poll
    • And many more

Should it be possible to have this structure in a module way instead?:

  • Blog
    • Controllers/*
    • Models/*
    • View/*
    • routes.js
  • Poll
    • Controllers/*
    • Models/*
    • View/*
    • routes.js
  • And more modules

When I develop I feel I mostly work with one part of the project at the time. When I the current structure its a lot of moving between folders. However most of the time I only focus on "module". It will also be easier to remove as module just to delete the sub folder and all it files are removed. If a project has more 30 modules it will be hard to find the file (Its possible to search but should be nice just have it in same folder). I been working with Drupal before that has this type of module system where you can easy add and remove modules (Might be that am used to to it and not yet familiar with this new this way of doing it). What are the main benefits of the first approach over the module way?

Is this possible to achieve in the express framework? If so any tutorials on how to set it up? Any other node.js framework support this?

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda