Go to file
Denis Ezhov d2a048333e
set time for create report (#294)
* set time for create report

* fixes

* fix

* prettier

* fix

* Changed time format

Co-authored-by: Ildar Galeev <keinasylum@gmail.com>
2020-10-02 15:41:46 +03:00
.vscode Daterange & Multiselest filters (#267) 2020-08-11 16:51:06 +03:00
build_utils@34f432a1e8 create international shop (#270) 2020-08-07 14:21:41 +03:00
e2e Bump prettier (#232) 2020-05-19 15:50:28 +03:00
schemes UI improvements (#288) 2020-09-15 19:22:14 +03:00
src set time for create report (#294) 2020-10-02 15:41:46 +03:00
swagger-codegen Change swagger codegen (#137) 2019-12-12 15:07:38 +03:00
tools Fix swag generation & bump submodules (#257) 2020-07-02 23:34:38 +03:00
.genryrc.json Change scaffolder (#205) 2020-04-20 20:35:06 +03:00
.gitignore Add sections module (#17) 2019-05-08 14:32:38 +03:00
.gitmodules Payement link improvements (#262) 2020-07-17 17:23:50 +03:00
.npmrc Change scaffolder (#205) 2020-04-20 20:35:06 +03:00
.prettierignore FE-886: Add claim management API (#57) 2019-08-12 16:34:18 +03:00
.prettierrc Fix empty error & Integration / shops split test | real shops (#233) 2020-05-20 14:02:23 +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 Switch to alpine (#290) 2020-09-22 12:21:58 +03:00
Jenkinsfile Added security pipeline (#260) 2020-07-09 17:22:49 +03:00
karma.conf.js Bump prettier (#232) 2020-05-19 15:50:28 +03:00
Makefile Switch to alpine (#290) 2020-09-22 12:21:58 +03:00
nginx.conf FE-708: Init (#1) 2018-11-30 16:26:03 +03:00
package-lock.json UI improvements (#288) 2020-09-15 19:22:14 +03:00
package.json UI improvements (#288) 2020-09-15 19:22:14 +03:00
README.md FE-1042: Payment link module (#213) 2020-05-08 18:19:45 +03:00
swagger-codegen-config.json Payement link improvements (#262) 2020-07-17 17:23:50 +03:00
tsconfig.app.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
tsconfig.json Integrate daterange filter into reports module (#273) 2020-08-17 18:21:56 +03:00
tsconfig.spec.json CI tests (#224) 2020-05-12 12:03:39 +03:00
tslint.angular.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
tslint.json Daterange & Multiselest filters (#267) 2020-08-11 16:51:06 +03:00
webpack.extra.js Bump prettier (#232) 2020-05-19 15:50:28 +03:00

Dashboard

Libraries

Dependency

  • Java

Initialization

# Init submodules
git submodule init
git submodule update

# Generate Angular modules from swags
npm run codegen

# Install packages
npm ci

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