Created
May 12, 2011 03:23
-
-
Save csanz/967878 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
I just discovered this ;) https://github.com/visionmedia/ngen
ngen is closer to what i typically go with. the primary diff in this gist seems to be having /app and /lib separated. i usually just go with /lib.
thanks Aaron! I'll modify and send another draft. I get a lot of new people wanting to know at least what to start with. I've started to use
/lib
models.js
config.js
routes.js
helpers.js
Mainly because I use the CMD+T on Textmate and helps me find those files faster.
textmate boo!, vim yay! hahah
On Sat, May 14, 2011 at 10:38 AM, csanz < ***@***.***>wrote:
thanks Aaron! I'll modify and send another draft. I get a lot of new
people wanting to know at least what to start with. I've started to use
/lib
models.js
config.js
routes.js
helpers.js
Mainly because I use the CMD+T on Textmate and helps me find those files
faster.
##
Reply to this email directly or view it on GitHub:
https://gist.github.com/967878
##
Aaron
hahaha hey, i do vim too :P
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
looks find to me, that's pretty similar to what I typically do