React.js app for Red Hat Hybrid Committed Spend.
User interface is based on Red Hat cloud service frontend components and Patternfly
To submit an issue, please visit https://issues.redhat.com/projects/HCS/issues
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
-
npm install
-
npm run start
-
Open browser in URL listed in the terminal output. For example:
https://stage.foo.redhat.com:1337/beta/business-services/hybrid-committed-spend
npm run verify
will run npm run lint
(eslint) and npm test
(Jest)
See https://github.com/RedHatInsights/cloud-services-config#testing-your-changes-locally
npm run start:csc
This release doc describes how to release the UI to each staging environment.