Go to file
2020-03-31 19:25:08 +03:00
.vsc-templates FE-999: Add payouts epic (#160) 2020-03-04 14:39:35 +03:00
.vscode FE-1026: Add Yandex Metrika (#181) 2020-03-26 12:25:49 +03:00
build_utils@cf6578dac7 BJ-827: swags, submodules updated (#178) 2020-03-19 13:21:01 +03:00
e2e Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
schemes anapi basepath changed from analytics/v1 to lk/v1 (#186) 2020-03-30 12:05:08 +03:00
src Fix empty payout refunds (#189) 2020-03-31 19:25:08 +03:00
swagger-codegen Change swagger codegen (#137) 2019-12-12 15:07:38 +03:00
tools Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
.gitignore Add sections module (#17) 2019-05-08 14:32:38 +03:00
.gitmodules Change swagger codegen (#137) 2019-12-12 15:07:38 +03:00
.huskyrc FE-902: Сreate questionary document 📮 🗃 👉📄 (#74) 2020-01-22 15:57:30 +03:00
.prettierignore FE-886: Add claim management API (#57) 2019-08-12 16:34:18 +03:00
.prettierrc FE-1024: Ordered-imports (#176) 2020-03-18 17:38:47 +03:00
angular.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
browserslist Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
containerpilot.json FE-708: Init (#1) 2018-11-30 16:26:03 +03:00
Dockerfile.sh FE-708: Init (#1) 2018-11-30 16:26:03 +03:00
Jenkinsfile FE-827: Add Swagger Codegen (#15) 2019-04-25 14:56:34 +03:00
karma.conf.js Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
Makefile Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
nginx.conf FE-708: Init (#1) 2018-11-30 16:26:03 +03:00
package-lock.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
package.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
README.md FE-902: Сreate questionary document 📮 🗃 👉📄 (#74) 2020-01-22 15:57:30 +03:00
swagger-codegen-config.json FE-950. File upload (#123) 2019-12-13 19:00:40 +03:00
tsconfig.app.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
tsconfig.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
tsconfig.spec.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
tslint.angular.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
tslint.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
webpack.extra.js Form control UI kit (#2) 2018-12-04 20:38:16 +03:00

Dashboard

Libraries

Initialization

Install packages

npm ci

Generate Angular modules from swags

npm run codegen

Development server

  • API (Production API default)

    • With mocks:

      Change ./src/appConfig.json API endpoints

  1. Start

    • Real Keycloak: npm start

    • Stub Keycloak

      1. Change ./src/authConfig.json / "auth-server-url":

      2. npm run stub

  2. Navigate to http://localhost:8000/

Production build

  1. Run npm run build
  2. The build artifacts will be stored in the dist/ directory.

Add API

  1. Add submodule

    git submodule -b <SCHEME_BRANCH> add <SCHEME_REPO> schemes/<SCHEME_NAME>/<VER:VX>
    
  2. Add schemes/<SCHEME_NAME>/<VER:VX> to Makefile SWAGGER_SCHEMES_PATH property

  3. Add "<SCHEME_NAME>": "schemes/<SCHEME_NAME>/<VER:VX>" to swagger-codegen-config.json schemes/schemes3 property

  4. Generate Angular modules from swags

  5. Add "<SCHEME_NAME>Endpoint": "<URL>" to src/assets/appConfig.json api property

  6. Add in src/api/<SCHEME_NAME> files:

    • index.ts
    • <SCHEME_NAME>.module.ts
    • <SCHEME_NAME>-config.service.ts
  7. Add <SCHEME_NAME>.module.ts to src/app/api/api.module.ts imports

Tests

  • Run npm run test to execute the unit tests via Karma.
  • Run npm run e2e to execute the end-to-end tests via Protractor.

Utils

Analyze bundle size

npm run build -- --prod --stats-json --extraWebpackConfig webpack.extra.js
npx webpack-bundle-analyzer dist/stats.json

Guides