React.js app for Red Hat Hybrid Committed Spend.
User interface is based on Patternfly.
Submit issues in Jira.
Edit the /etc/hosts
file and add the following entries
127.0.0.1 prod.foo.redhat.com
127.0.0.1 stage.foo.redhat.com
Alternatively, run the patch-etc-hosts.sh script from the insights-proxy repo
sudo bash scripts/patch-etc-hosts.sh
- Install requirements listed above.
- Setup
/etc/hosts
entries listed above. - Clone the repository, and open a terminal in the base of this project.
- Run the command
npm install
to install all the dependencies.
npm build
npm test
Note that this approach currently supports the Insights stage-beta, stage-stable, prod-beta, and prod-stable environments.
- Start development server
npm start
Follow the prompts that follow.
- Do you want to use local api?
no
- Which platform environment you want to use
stage
- Which Chrome environment you want to use?
beta
- Open the following URL
https://stage.foo.redhat.com:1337/beta/business-services/hybrid-committed-spend
Refer to the serving files locally section of cloud services config for more details
- Serve files locally from Cloud Services Backend repo
make dev-static-node
- Start development server in Hybrid Committed Spend repo
npm start:csb
This release doc describes how to release Hybrid Committed Spend UI to each staging environment.