Skip to content

Frontend web page for DEE HMS (Disk Encryption Experience Hosted Managed Service)

Notifications You must be signed in to change notification settings

dee-hms/tang-adv-displayer

Repository files navigation

tang-adv-displayer

shellcheck
spellcheck

Initial etc/hosts setup

In order to access URL https://[env].foo.redhat.com in your browser, you have to add entries to your /etc/hosts file. This is a one-time setup that has to be done only once (unless you modify hosts) on each machine.

To setup the hosts file run following command:

npm run patch:hosts

If this command throws an error run it as a sudo:

sudo npm run patch:hosts

Deployment

  1. For application to run correctly and be able to retrieve Tang backend information, it is required to configure ./src/confdata.json with next information:
{
  "environment": "ENVIRONMENT_TO_CONNECT",
  "namespace":  "THE_NAMESPACE_IN_EPHEMERAL_ENVIRONMENTS",
  "token": "EPHEMERAL_ENVIRONMENT_ACCESS_TOKEN"
}

NOTE: The environment to connect should contain prefix https://

If you are connected to a bonfire environment, and have a text file with your token, ./src/confdata.json required information can be generated through ./tools/generate_json_confdata.sh:

$ ./generate_json_confdata.sh -t ../../../../api_token.txt 
{
  "environment":"https://api.a-bc-d-efg.1p1c.p2.openshiftapps.com:3456",
  "namespace":"ephemeral-num123",
  "token":"sha256~basdkj123234234WdfaADF234FDASDF63124BzxBZXx"
}
  1. npm install

  2. npm run start. On its execution, you will be able to select the kind of deployment(prod/stage) and the kind of distribution(beta/stable).

  3. Open browser in URL listed in the terminal output. The URL will be something of the type: https://prod.foo.redhat.com:1337/beta/staging/tang-adv-displayer/ URL will vary considering the kind of deployment and distribution selected.

Testing

npm run verify will run npm run lint (eslint) and npm test (jest)

About

Frontend web page for DEE HMS (Disk Encryption Experience Hosted Managed Service)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published