Skip to content

Instantly share code, notes, and snippets.

@lbdremy
Forked from csanz/gist:967878
Created May 12, 2011 08:16
Show Gist options
  • Save lbdremy/968150 to your computer and use it in GitHub Desktop.
Save lbdremy/968150 to your computer and use it in GitHub Desktop.
The ExpressJS-MongooseJS.org initiative ;)
Trying to come up with a standard expressjs + mongoose mvc-like folder structure.
still keep it flexible, so anyone can do whatever they want,
but provide a structure for new people.
(borrowing a little form rails)
-/app
--/controller
---/user_controller.js
--/models
---/index.js
---/user.js
--/views
---/layout.js
---/index.js
---/user/
----/index.js
-/lib
--/site.js
--/helpers.js
-/public
--/javascript
--/stylesheets
index.js
Readme.md
History.md
package.json
Partials naming convention:
_<name>.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment