Comment of the structure of another template system in use with Express.
Let's take an example of using ExpressJS web framework for NodeJS.
People may use ExpressJS to put their environments like development, production or test, and also their routes etc. on the app.js. But that's not a good practice as when it comes to a large scale application, app.js then will be also too large to handle.
The following directory structure would work perfectly instead:
| my-application
| -- app.js
| -- config/
| -- environment.js
| -- routes.js
Get Answers For Free
Most questions answered within 1 hours.