Skip to content

Commit cde2917

Browse files
NOBUG: added "Running locally with Keycloak" info
1 parent 3feed20 commit cde2917

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,26 @@ npm ls -g --depth=0
4949
1. Run `npm run build` to just build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build, like so: `ng serve --prod` to run in production mode.
5050
1. Run `npm run lint` to just lint your app code using TSLint.
5151

52+
## Running locally with Keycloak
53+
54+
1. Before starting the local API project, in your shell, enable Keycloak and set Tantalis variables:
55+
```
56+
export KEYCLOAK_ENABLED=true
57+
export TTLS_API_ENDPOINT="<see below>"
58+
export WEBADE_AUTH_ENDPOINT="<see below>"
59+
export WEBADE_USERNAME="<see below>"
60+
export WEBADE_PASSWORD="<see below>"
61+
```
62+
:bulb: Get the values for TTLS_API_ENDPOINT, WEBADE_AUTH_ENDPOINT, WEBADE_USERNAME and WEBADE_PASSWORD, at [Openshift](https://console.pathfinder.gov.bc.ca:8443/console/projects) &rarr; Natural Resource Public Review and Comment (dev) project &rarr; Applications &rarr; Pods &rarr; prc-api pod &rarr; Environment.
63+
64+
2. Before starting the local Admin project, in file `src/app/services/keycloak.service.ts`, around line 17, change code to:
65+
```
66+
case 'http://localhost:4200':
67+
// Local
68+
this.keycloakEnabled = true;
69+
break;
70+
```
71+
5272
## Code scaffolding
5373

5474
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|module`.

0 commit comments

Comments
 (0)