mirror of
https://github.com/valitydev/dashboard.git
synced 2024-11-06 02:25:23 +00:00
.github | ||
.vscode | ||
build_utils@56606f5cac | ||
e2e | ||
schemes | ||
src | ||
tools | ||
.browserslistrc | ||
.eslintrc.js | ||
.genryrc.json | ||
.gitignore | ||
.gitmodules | ||
.npmrc | ||
.prettierignore | ||
.prettierrc | ||
angular.json | ||
containerpilot.json | ||
Dockerfile.sh | ||
icons-config.json | ||
Jenkinsfile | ||
karma-ci.conf.js | ||
karma.conf.js | ||
Makefile | ||
nginx.conf | ||
openapi-codegen-config.json | ||
package-lock.json | ||
package.json | ||
README.md | ||
swagger-codegen-config.json | ||
tsconfig.app.json | ||
tsconfig.json | ||
tsconfig.spec.json | ||
webpack.extra.js |
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
-
-
Start
-
Real Keycloak:
npm start
-
Stub Keycloak
-
Change
./src/authConfig.json
/"auth-server-url"
: -
npm run stub
-
-
-
Navigate to
http://localhost:8000/
Production build
- Run
npm run build
- The build artifacts will be stored in the
dist/
directory.
Add API
-
Add submodule
git submodule add -b <SCHEME_BRANCH> <SCHEME_REPO> schemes/<SCHEME_NAME>/<VER:VX>
-
Add
schemes/<SCHEME_NAME>/<VER:VX>
toMakefile
SWAGGER_SCHEMES_PATH
property -
Add
"<SCHEME_NAME>": "schemes/<SCHEME_NAME>/<VER:VX>"
toopenapi-codegen-config.json
schemes
property -
(*) Add
"<SCHEME_NAME>Endpoint": "<URL>"
tosrc/assets/appConfig.json
api
property -
Add in
src/api-codegen/<SCHEME_NAME>
files:index.ts
<SCHEME_NAME>.module.ts
<SCHEME_NAME>-config.service.ts
-
Add
<SCHEME_NAME>.module.ts
tosrc/app/api/api.module.ts
imports
-
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
Chrome page auto-reloading problem
Need to disable SameSite by default cookies flag