Skip to content

RedHatInsights/subscription-central-ui

Repository files navigation

Build Status

Subscription Central

An app to handle subscription management on console.redhat.com, built using the Starter App for Red Hat Insights products that includes Patternfly 4 and shared Red Hat cloud service frontend components.

Getting Started

  1. The first time you clone the repo, run npm install

  2. npm run start or npm run start:beta, depending on whether you want to run in stable or beta mode.

  3. Set up the rhsm-web API proxy so that API calls will be allowed. See this doc here for details depending on which browser you use: https://source.redhat.com/groups/public/customer-platform-devops/digital_experience_operations_dxp_ops_wiki/using_squid_proxy_to_access_akamai_preprod_domains_over_vpn (note that if this is not done, the app will load but all API calls will fail when running locally)

  4. Ensure that you are on the Red Hat VPN

  5. Open one of the following environments behind the Red Hat VPN and accept the certs:

Should you need more help, there is a comprehensive quick start guide in the Storybook Documentation.

Testing

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

Deploying

  • This repo uses Travis to deploy the webpack build to another Github repo defined in .travis.yml
    • That Github repo has the following branches:
      • stage-beta (deployed by pushing to master or main on this repo)
      • stage-stable (deployed by pushing to main-stable on this repo)
      • prod-beta (deployed by pushing to prod-beta on this repo)
      • prod-stable (deployed by pushing to prod-stable on this repo)
  • Travis uploads results to RedHatInight's codecov account. To change the account, modify CODECOV_TOKEN on https://travis-ci.com/.

Navigation

Please see the navigation doc for details on configuring this app within the console.redhat.com navigation

App Architecture

Please see the architecture doc for details on the app architecture and tools used.