48 lines
1.7 KiB
Markdown
48 lines
1.7 KiB
Markdown
# Redaction
|
|
|
|
### To Create a new Stack in rancher check [this Wiki page](https://wiki.iqser.com/pages/viewpage.action?spaceKey=RED&title=Work+with+kubectl)
|
|
|
|
## Code style
|
|
|
|
* Always use `trackBy` in `*ngFor` loops (see shorthand below)
|
|
```typescript
|
|
readonly trackBy = trackByFactory();
|
|
```
|
|
* Don't use `setInterval` without calling `clearInterval` in `ngOnDestroy`
|
|
* Never call getters in HTML templates
|
|
|
|
## Keycloak Staging Config
|
|
|
|
- keycloak:
|
|
- authServerUrl: 'https://redkc-staging.iqser.cloud/auth'
|
|
- client:
|
|
- secret: 'a4e8aa56-03b0-4e6b-b822-8ac1f41280c4'
|
|
|
|
## Default Testing URLs
|
|
|
|
* `https://dev-04.iqser.cloud/`
|
|
* `https://dev-08.iqser.cloud/`
|
|
|
|
## Test Users
|
|
|
|
| username | role | comment |
|
|
|--------------|--------------------------------|----------------------------|
|
|
| guest | | cannot use the application |
|
|
| user | RED_USER | |
|
|
| red_manager | RED_MANAGER | |
|
|
| useradmin | RED_ADMIN, RED_USER | has super power ! |
|
|
| manageradmin | RED_ADMIN RED_MANAGER RED_USER | has super super power ! |
|
|
|
|
Password for all users is `OsloImWinter!23`
|
|
|
|
### Running the app locally
|
|
|
|
Requirements:
|
|
|
|
* node 16 or newer installed ( https://nodejs.org/en/download/ )
|
|
* yarn ( execute `npm install -g yarn` in any terminal after installing node )
|
|
|
|
In the root folder simply execute `yarn install` followed by `yarn start`.
|
|
The file `apps/red-ui/src/assets/config.config.json` contains the configuration for local development. All properties
|
|
defined here are later available via env variables.
|