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.
-
The first time you clone the repo, run
npm install
-
npm run start
ornpm run start:beta
, depending on whether you want to run in stable or beta mode. -
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)
-
Ensure that you are on the Red Hat VPN
-
Open one of the following environments behind the Red Hat VPN and accept the certs:
- https://ci.foo.redhat.com:1337/beta/insights/subscriptions/manifests
- https://qa.foo.redhat.com:1337/beta/insights/subscriptions/manifests
- https://stage.foo.redhat.com:1337/beta/insights/subscriptions/manifests
- https://prod.foo.redhat.com:1337/beta/insights/subscriptions/manifests
Should you need more help, there is a comprehensive quick start guide in the Storybook Documentation.
npm run verify
will run npm run lint
(eslint) and npm test
(Jest)
- 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 tomaster
ormain
on this repo)stage-stable
(deployed by pushing tomain-stable
on this repo)prod-beta
(deployed by pushing toprod-beta
on this repo)prod-stable
(deployed by pushing toprod-stable
on this repo)
- That Github repo has the following branches:
- Travis uploads results to RedHatInight's codecov account. To change the account, modify CODECOV_TOKEN on https://travis-ci.com/.
Please see the navigation doc for details on configuring this app within the console.redhat.com navigation
Please see the architecture doc for details on the app architecture and tools used.