Javascript-форум (https://javascript.ru/forum/)
-   Angular.js (https://javascript.ru/forum/angular/)
-   -   Angular2 публичные директории (https://javascript.ru/forum/angular/68565-angular2-publichnye-direktorii.html)

lionsgate 24.04.2017 10:19

Angular2 публичные директории
 
Приветствую участников форума!

Делаю свое первое SPA приложение. Вопрос по безопасности - какие директории нужно держать открытыми а какие закрывать от публичного доступа?
Сейчас у меня такая структура:
¦   .editorconfig
¦   .gitignore
¦   .travis.yml
¦   bs-config.e2e.json
¦   bs-config.json
¦   CHANGELOG.md
¦   karma-test-shim.js
¦   karma.conf.js
¦   LICENSE
¦   non-essential-files.osx.txt
¦   non-essential-files.txt
¦   package.json
¦   protractor.config.js
¦   README.md
¦   tslint.json
¦   
+---e2e
¦       app.e2e-spec.ts
¦       tsconfig.json
¦       
+---node_modules
¦       ...            		
¦                   
L---src
    ¦   favicon.ico
    ¦   index.html
    ¦   main.js
    ¦   main.js.map
    ¦   main.ts
    ¦   styles.css
    ¦   systemjs-angular-loader.js
    ¦   systemjs.config.extras.js
    ¦   systemjs.config.js
    ¦   tsconfig.json
    ¦   
    L---app
            app.component.js
            app.component.js.map
            app.component.spec.js
            app.component.spec.js.map
            app.component.spec.ts
            app.component.ts
            app.module.js
            app.module.js.map
            app.module.ts


Часовой пояс GMT +3, время: 17:00.