Sign in
Log inSign up

What achitecture do you use in your node.js applications?

slim's photo
slim
·Oct 21, 2020·

1 min read

I just faced this question in an interview: What is the project organization that you prefer in your application?

I answered that it depends on the the complexity and the size of the project and the experience of the team and I'm used to choose the standard one:

   server.js
   app.js
   models
      |-- model.js
   controllers
      |-- controller.js
   routes
      |-- routes.js
   config.js
   tests
      |-- test.js
   utils

But I don't think that the interviewer liked this answer and this strategy and told me that they use the 3 layer architecture strategy. They don't mix the business logic with express controllers and they use services and controllers and models like mentioned in this example Bulletproof node.js project architecture. Any suggestion or any opinion is welcome.

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct