$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
$ nvm install 4
$ nvm use 4
$ npm install
$ npm test
$ npm test
$ npm start
$ npm run build
VAR | OPTION | RESULT |
---|---|---|
BACKEND | [string] | backend to use |
KEYCLOAKURL | [string] | keycloak login url |
CLIENTID | [string] | keycloak client id |
KEYCLOAKACCOUNTSERVICE | [string] | url to use for managing the user's keycloak account |
PORT | [integer] | port to run nginx server on |
Can be built and run in the same way with docker for example:
$ docker build -t ibm-frontend .
$ docker run -i -e "BACKEND=localhost:8000" ibm-frontend