I'm new to Node.js and am unsure about how to layout some things.
My directory structure is as follows (I'm open to changing this):
- controllers
- helpers
- middlewares
- models
- BlockLibraryConfigs.js
- BlockMosaicStreamer.js
- GlobalMercator.js
- index.js
- MosaicStreamer.js
- nbproject
- private
- private.properties
- private.xml
- project.properties
- project.xml
- node_modules
- all installed modules . . .
- public
- images
- javascripts
- stylesheets
- style.css
- tests
- views
- index.jade
- layout.jade
- view.jade
app.js
package.json
The files under models, with the exception of index.js
include classes. Is this the right spot for them? If so, I should make them accessible through index.js
, right? What's the proper way to go about this?