/acs-ui

Build repo: https://github.com/RedHatInsights/acs-ui-build

Primary LanguageJavaScriptApache License 2.0Apache-2.0

acs-ui

ACS app for the consoledot platform that includes Patternfly 4 and shared Red Hat cloud service frontend components.

Initial access setup

In order to access the 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

You should also set up the Red Hat squid proxy using this guide. Depending on what browser you use, choosing either Firefox, Chrome, or Safari would be a good choice.

Getting started

  1. npm install

  2. npm run start:beta

  3. Open browser in URL listed in the terminal output

Testing

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

Definitions

  • stage - Development and Testing
  • prod - Production
  • qaprodauth - Same environment as stage but uses production SSO instead of stage SSO
  • beta - Some UI features or even services are in a pre-release or preview state. Usually only in stage.
  • stable - Non-beta stable version

Deploying

  • This repo uses Github Actions to build and deploy the webpack dist/ directory to another Github repo defined in .github/workflows
    • Pushing to the specified branches will push the build files to the following branches in the build repo:
      • main -> ci-beta -> qa-beta -> stage-beta
      • stable -> ci-stable -> qa-stable -> stage-stable
      • prod-beta -> prod-beta
      • prod-stable -> prod-stable

Branch links and syncing

These are the urls for each branch:

Beta

Stable