React.js starter app for Red Hat Insights products that includes Patternfly 4 and shared Red Hat cloud service frontend components.
Before using this template, please check the create-crc-app. It has some extra setup you may like.
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 devel machine.
Best way is to edit manually /etc/hosts on your localhost line:
127.0.0.1 <your-fqdn> localhost prod.foo.redhat.com stage.foo.redhat.com
Alternatively you can do this by running following command:
npm run patch:hostsIf 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
Update appUrl string inside fec.config.js according to your application URL. Read more.
npm run verify will run npm run lint (eslint) and npm test (Jest)
The locale-validation workflow builds the i18n CLI, but npm ci in this repository does not
install it. Until @redhat-cloud-services/i18n-pipeline is published, build the exact tooling
revision pinned by .github/workflows/locale-validation.yml (currently
7228d32f08872f97c8de8d255b5690e77f484f1f):
git clone https://github.com/RedHatInsights/i18n-tooling.git
cd i18n-tooling
git checkout 7228d32f08872f97c8de8d255b5690e77f484f1f
npm ci
npm run buildThen, from this repository, add that checkout's CLI to PATH for the validation command:
PATH="/path/to/i18n-tooling/node_modules/.bin:$PATH" npm run translations:validateThis CLI currently requires Node.js 22.14 or newer. If the workflow pin changes, use the new SHA in both the checkout and this instruction.
- The starter 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 tomasterormainon this repo)ci-stable(deployed by pushing toci-stableon this repo)qa-beta(deployed by pushing toqa-betaon this repo)qa-stable(deployed by pushing toqa-stableon this repo)prod-beta(deployed by pushing toprod-betaon this repo)prod-stable(deployed by pushing toprod-stableon this repo)
- That Github repo has the following branches:
- Travis uploads results to RedHatInsight's codecov account. To change the account, modify CODECOV_TOKEN on https://travis-ci.com/.
we are pulling data from back office and openapi spec for it can be found at https://sso.redhat.com/auth/realms/redhat-external/apis/openapi.yaml