mirror of
https://github.com/valitydev/control-center.git
synced 2024-11-06 02:25:17 +00:00
.github | ||
.idea | ||
.run | ||
.vscode | ||
projects/ng-core | ||
src | ||
tools | ||
.browserslistrc | ||
.eslintrc.js | ||
.gitignore | ||
.npmrc | ||
.prettierignore | ||
.prettierrc | ||
angular.json | ||
Dockerfile | ||
karma-ci.conf.js | ||
karma.conf.js | ||
LICENSE | ||
nginx.conf | ||
package-lock.json | ||
package.json | ||
proxy.conf.js | ||
README.md | ||
renovate.json | ||
tsconfig.app.json | ||
tsconfig.json | ||
tsconfig.spec.json | ||
webpack.extra.js |
Control Center
Installation
-
Add environment and configurations:
.env
PROXY_TARGET="https://<URL>"
src/assets/appConfig.json
:{ "fileStorageEndpoint": "https://<URL>", "constants": { "currencies": [{ "source": "<ID>", "currency": "USD" }] } }
src/assets/authConfig.json
:{ "realm": "internal", "auth-server-url": "https://<URL>", "ssl-required": "external", "resource": "control-center", "public-client": true }
-
Install packages
npm ci
Stage
Running in stage mode needs files:
env.stage
src/assets/appConfig.stage.json
src/assets/authConfig.stage.json
Usage
- Start
npm start
- Open localhost:4200
If you want to develop a library, then it's better to start building library separately:
npm run dev
npm run dev-libs