swinkler149 / 901K-Sandbox

901K Sandbox Project
4 stars 1 forks source link

Revisit angular project structure #16

Open SMIOP opened 9 years ago

swinkler149 commented 9 years ago

Added source/c3 new angular sample app. You'll need to run npm install and possibly bower install to resolve dependencies as I've updated my .gitignore to stop uploading node_modules to repo.

Also add following dependencies:

as root (you can root shell by doing "sudo bash")

npm install -g generator-angular-fullstack npm install -g generator-angular npm install -g grunt grunt-cli

(then exit root shell)

You'll launch the app from grunt instead of express. To run the app run

npm install (to resolve dependencies and fill node_modules) bower install (to resolve dependencies and fill node_modules) grunt serve

Enjoy the watch/autorefresh feature of Grunt!!!

swinkler149 commented 9 years ago

Also check this link for short cuts on generating new views and controllers.

https://github.com/yeoman/generator-angular