Go to file
2022-01-26 19:48:30 +03:00
.github Add CodeQL 2022-01-26 19:48:30 +03:00
.idea TD-96: Customizable logo (#13) 2022-01-20 17:44:44 +03:00
.vscode FR-723: Org info form (#557) 2021-08-31 11:16:12 +03:00
schemes FR-778: Update orgs swag (#584) 2021-11-09 11:11:55 +03:00
src TD-103: New RXJS@7 (#23) 2022-01-24 11:16:01 +03:00
tools TECHDEBT-36: Bump Angular@13 and fixes (#8) 2022-01-14 14:06:44 +03:00
.browserslistrc FR-623: New Angular - 12 (#483) 2021-08-02 18:06:09 +03:00
.eslintrc.js TECHDEBT-36: Bump Angular@13 and fixes (#8) 2022-01-14 14:06:44 +03:00
.gitignore TECHDEBT-36: Bump Angular@13 and fixes (#8) 2022-01-14 14:06:44 +03:00
.gitmodules TECHDEBT-36: Bump Angular@13 and fixes (#8) 2022-01-14 14:06:44 +03:00
.prettierignore TECHDEBT-36: Add CI check and build (#9) 2022-01-17 11:20:10 +03:00
.prettierrc TD-96: Customizable logo (#13) 2022-01-20 17:44:44 +03:00
angular.json TECHDEBT-36: Add new theme (#7) 2022-01-14 11:17:10 +03:00
Dockerfile TECHDEBT-36: Add CI check and build (#9) 2022-01-17 11:20:10 +03:00
icons-config.json Simplify theme config (#398) 2021-03-05 13:29:56 +03:00
karma-ci.conf.js [epic] Operations payments refactoring (#371) 2021-01-28 13:21:24 +03:00
karma.conf.js [epic] Operations payments refactoring (#371) 2021-01-28 13:21:24 +03:00
LICENSE Let's make it opensource (#547) 2021-08-13 18:16:37 +03:00
nginx.conf FE-708: Init (#1) 2018-11-30 16:26:03 +03:00
openapi-codegen-config.json New openapi-generator-cli (#519) 2021-07-26 17:56:22 +03:00
openapitools.json New openapi-generator-cli (#519) 2021-07-26 17:56:22 +03:00
package-lock.json TD-103: New RXJS@7 (#23) 2022-01-24 11:16:01 +03:00
package.json TD-103: New RXJS@7 (#23) 2022-01-24 11:16:01 +03:00
README.md FR-709: Mobile navbar (#544) 2021-08-16 18:35:43 +03:00
renovate.json TD-96: Customizable logo (#13) 2022-01-20 17:44:44 +03:00
swagger-codegen-config.json Update CI image & remove PhantomJS (#321) 2020-11-26 16:45:16 +03:00
tsconfig.app.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
tsconfig.json FR-623: New Angular - 12 (#483) 2021-08-02 18:06:09 +03:00
tsconfig.spec.json Update to angular 10 (#376) 2021-02-04 17:57:52 +03:00
webpack.extra.js TECHDEBT-36: Bump Angular@13 and fixes (#8) 2022-01-14 14:06:44 +03:00

Dashboard

Libraries

Initialization

Init submodules

git submodule init
git submodule update

Configuring npm for use with GitHub Packages

Install packages

npm ci

Generate Angular modules from swags (java runtime required)

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 add -b <SCHEME_BRANCH> <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 openapi-codegen-config.json schemes property

  4. Regenerate Angular modules from swags

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

  6. Add in src/api-codegen/<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

  8. Create src/api/<SCHEME_NAME> module

Tests

  • Run npm run test to execute the unit tests via Karma.

Utils

Analyze bundle size

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

Guides