electron-angular-boilerplate icon indicating copy to clipboard operation
electron-angular-boilerplate copied to clipboard

New Folder Structure

Open datnordstrom opened this issue 10 years ago • 5 comments

Just a question and possibly a request.

How does the folder structure work. It's a bit confusing with /dist and /src and /views being in the same root. Instead of /app /app/src /app/views or

https://scotch.io/tutorials/angularjs-best-practices-directory-structure

datnordstrom avatar Oct 22 '15 20:10 datnordstrom

I see, I have not updated this project in some time but at some point I will be updating the structure. And personally, I do not like the structure you sent. I much prefer the following:

- app/
  - home/
    - directives/
      - home.directive.js
    - layout/
      - home.html
    - controllers/
      - home.controller.js
  - user/
    - user.service.js
  index.js

I also use build tools like Gulp to automatically concat and merge all the JS files into a single JS file

stephnr avatar Oct 22 '15 20:10 stephnr

Actually yes, the structure you have is what i prefer! i simply found a quick link on the internet.

Thank you for reading!

datnordstrom avatar Oct 22 '15 20:10 datnordstrom

Cool, I wouldn't recommend just throwing links around. It's counter productive.

stephnr avatar Oct 22 '15 20:10 stephnr

You can help contribute to the new pattern if you wish @datnordstrom just submit a PR

stephnr avatar Oct 22 '15 20:10 stephnr

Agreed. Thanks!

datnordstrom avatar Oct 22 '15 20:10 datnordstrom