Google News
logo
Express.js - Interview Questions
How Should I Structure my Express JS Application?
There is no definitive answer to the current question. The solution depends on the dimensions of your application and therefore the team that’s concerned.

Routes and alternative application-Express logic will board as several files as you would like, in any directory structure you favor. Read the subsequent examples for inspiration :
 
* Route listings
* Route map
* MVC vogue controllers

Also, there are third-party extensions for Express JS applications that modify a number of these patterns:
Resourceful routing
Advertisement