D
D
DarthJS2017-02-17 17:07:59
JavaScript
DarthJS, 2017-02-17 17:07:59

What is the best way to organize the folder structure for a large application (in particular services)?

I often read different versions of the structure, but I did not manage to understand one point.
There is an application, the structure is modular:

/core/
/app/
     /component/
              /service
               /controller
               /template
               /css

Maybe the question is a little strange, but sometimes I get confused about which methods to put in core and which in component services.
Or is core most commonly used? What about a service directly to a component in rare cases?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Memfisrain, 2017-02-23
@Memfisrain

I like the approach in which the application is structured by features. I would add app/common to your architecture, where services, directives, etc., common to components, will be stored in folders with the same names (services, directives)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question