Skip to content

Instantly share code, notes, and snippets.

@alexgorbatchev
Created January 14, 2014 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexgorbatchev/8428232 to your computer and use it in GitHub Desktop.
Save alexgorbatchev/8428232 to your computer and use it in GitHub Desktop.
MEAN folder structure
/node_modules
/package.json
/src
/node_modules
/client -> ../client
/server -> ../server
/shared -> ../shared
/client
/apps
/main
/test
main.spec.js
index.js
/modules
/foo
/test
foo.spec.js
index.js
/server
/apps
/modules
/shared
@alexgorbatchev
Copy link
Author

from any file in the src you can require("shared/foo") or require("client/modules/foo") and so on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment