An app to handle subscription management on cloud.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
-
Add IPs to /etc/hosts by running
sudo vi /etc/hosts
, then add the following:
127.0.0.1 prod.foo.redhat.com
127.0.0.1 stage.foo.redhat.com
127.0.0.1 qa.foo.redhat.com
127.0.0.1 ci.foo.redhat.com
Note: The above command may differ if running on a machine other than Linux
-
npm run start
ornpm run start:beta
, depending on whether you want to run in stable or beta mode. -
Open one of the following environments behind the Red Hat VPN and accept the certs:
- https://ci.foo.redhat.com:1337/beta/insights/subscriptions/inventory
- https://qa.foo.redhat.com:1337/beta/insights/subscriptions/inventory
- https://stage.foo.redhat.com:1337/beta/insights/subscriptions/inventory
- https://prod.foo.redhat.com:1337/beta/insights/subscriptions/inventory
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:
ci-beta
(deployed by pushing tomaster
ormain
on this repo)ci-stable
(deployed by pushing tomain-stable
on this repo)qa-beta
(deployed by pushing tomain
on this repo)qa-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/.