A
A
Aleks Front2015-11-04 10:06:24
Angular
Aleks Front, 2015-11-04 10:06:24

Angualr project structure?

/app
    /bower_components
    /common
        /fonts
        /SASS
        /img
    /modules
        /user
            /tests
            /views
                index.html
                style.sass
                img

            /LoginController.js
            /RegistrationController.js
            /UserModel.js
            /UserService.js
        ....
index.html

The project then builds a version of .devBuild and .prodBuild
.devBuild - a project with a combined main.css and vendor.css (similar to js) and an uncompressed sourcemap, generated sprites (svg), etc.
.prodBuild - the project is built with minified files and without sourcemap
. Does anyone have more experience (I'm building the first project on angular) do you have any recommendations?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Deleted Deleted, 2015-11-04
@Azimov

are there any recommendations?

Yes, I have.

S
Sergey, 2015-11-04
Protko @Fesor

Take the finished skeleton and don't worry + as Azimov Elbek advises you , read the angular styleguide.

Y
Yaroslav Lyzlov, 2015-11-04
@dixoNich

normal structure. I would also scatter .js files into folders. controllers/services/directives/filters and so on. I would leave one file at the root, user.js, with the module definition and global module settings.

C
ChtotoBudet, 2015-11-04
@ChtotoBudet

styleguide 1
styleguide 2
Here are recommendations, including the choice of project structure

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question