Skip to content

RedHatInsights/hybrid-committed-spend-ui

Folders and files

NameName
Last commit message
Last commit date
Oct 6, 2023
Aug 5, 2022
Oct 2, 2023
Aug 25, 2022
Aug 1, 2023
Nov 14, 2022
Sep 14, 2023
Sep 6, 2023
Oct 9, 2023
Oct 6, 2023
Aug 27, 2022
Mar 21, 2023
Oct 2, 2023
Oct 21, 2022
Aug 26, 2022
Aug 26, 2022
Sep 20, 2022
Mar 24, 2023
Aug 11, 2023
Aug 5, 2022
Aug 30, 2022
Aug 27, 2022
Mar 24, 2023
Oct 16, 2023
Oct 6, 2023
Nov 13, 2023
Nov 13, 2023
Mar 24, 2023
Jan 6, 2023

Repository files navigation

Hybrid Committed Spend

AGPLv3 Build Status

hybrid-committed-spend

React.js app for Red Hat Hybrid Committed Spend.

User interface is based on Red Hat cloud service frontend components and Patternfly Patternfly

To submit an issue, please visit https://issues.redhat.com/projects/HCS/issues

Initial etc/hosts setup

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

Getting started

  1. npm install

  2. npm run start

  3. Open browser in URL listed in the terminal output. For example:

https://stage.foo.redhat.com:1337/beta/business-services/hybrid-committed-spend

Testing

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

Testing UI changes locally with Cloud Services Config

See https://github.com/RedHatInsights/cloud-services-config#testing-your-changes-locally

npm run start:csc

Deploying

This release doc describes how to release the UI to each staging environment.