What is your folder-structure preference for a large-scale Node.js project?
0: Starting from Rails
This is the reference point. All the other options are based off this.
|-- app | |-- controllers | | |-- admin
Nesting allows elements in an array to be grouped into a hierarchical tree
structure; think of it like the
GROUP BY operator in SQL, except you can have
multiple levels of grouping, and the resulting output is a tree rather than a
flat table. The levels in the tree are specified by key functions.
See this fiddle for live demo.