Closed jstirnaman closed 9 years ago
It looks like what we have is close to the LIFT guidelines described in johnpapa Angular Style Guide
I like "A Better Structure and Foundation" in AngularJS Best Practices: Directory Structure. I like that shared things are broken out, but it does add a extra directory level.
Unfortunately I have not done any coding on this project.
I have been reminded by @jstirnaman that it does not matter where the files are located as long as they are pulled in, in the right sequence.
I've started reorganizing according to the suggested "organize by feature" in the Angular Style Guide. The structure will look generally like this: CodeForAmericaProjectsHub/ --app/ ----dashboard/ ----data/ ----idea/ ----project/ ----app.module.js --assets/ --bower_components/ --index.html
I recommend keeping 'hub' as a folder, not 'dashboard'. Here is why: Dashboard refers to charts and gadgets.Hub refers to hub-and-spoke navigation model we use in the projects hub.
@tangospring Done. Thanks for the clarification.
Reorg by feature is completed with 2b851ed2e6479e0d327c4fe29208ffb6a2bee99c
@reggieroby @zmon Can we pick one of these feature-organizing patterns? Whichever works the best. We should cause the least confusion possible for developers familiar with MVC or not. https://github.com/johnpapa/angular-styleguide#style-y152 https://scotch.io/tutorials/angularjs-best-practices-directory-structure#a-better-structure-and-foundation