Go to file
2019-12-02 18:44:31 +03:00
.vsc-templates FE-864: Claim details timeline (#46) 2019-06-25 18:53:23 +03:00
.vscode Ft/FE-935: Add reports API module (#101) 2019-10-17 13:29:03 +03:00
build_utils@4a09386542 Ft/FE-935: Add reports API module (#101) 2019-10-17 13:29:03 +03:00
e2e FE-708: Init (#1) 2018-11-30 16:26:03 +03:00
schemes Questionary integration fixes (#128) 2019-11-29 14:38:53 +03:00
src FE-966: Usage DaData input (#129) 2019-12-02 18:44:31 +03:00
tools FE-913: Add custom icons (#106) 2019-10-28 19:07:49 +03:00
.gitignore Add sections module (#17) 2019-05-08 14:32:38 +03:00
.gitmodules Ft/FE-914:Add DaData proxy service (#95) 2019-10-09 19:16:26 +03:00
.prettierignore FE-886: Add claim management API (#57) 2019-08-12 16:34:18 +03:00
.prettierrc FE-716: Layout modules (#3) 2018-12-13 16:22:47 +03:00
angular.json FE-949: Show document created claims (#115) 2019-11-19 17:30:54 +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
Makefile Ft/FE-914:Add DaData proxy service (#95) 2019-10-09 19:16:26 +03:00
nginx.conf FE-708: Init (#1) 2018-11-30 16:26:03 +03:00
package-lock.json FE-955: Add validators & formatters (#125) 2019-11-26 16:13:49 +03:00
package.json FE-955: Add validators & formatters (#125) 2019-11-26 16:13:49 +03:00
README.md FE-949: Show document created claims (#115) 2019-11-19 17:30:54 +03:00
swagger-codegen-config.json FE-938: Integration with questionary API (#102) 2019-10-18 17:36:40 +03:00
tsconfig.json FE-886: Add claim management API (#57) 2019-08-12 16:34:18 +03:00
tslint.json FE-900: Claim management tests (#70) 2019-09-03 17:21:30 +03:00
webpack.extra.js Form control UI kit (#2) 2018-12-04 20:38:16 +03:00

Dashboard

Libraries

  • Angular CLI
    • Run ng generate component component-name to generate a new component (you can also use ng generate directive|pipe|service|class|guard|interface|enum|module).
    • To get more help use ng help or go check out the Angular CLI README.
  • Angular Material
  • Prettier

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 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