Policies frontend for Red Hat Insights
- Make sure you have
Node.js
version >= 18 installed - Make sure you have
yarn
installed - Run script to patch your
/etc/hosts
- Make sure you are using Red Hat proxy
- Make sure you are connected to the Red Hat VPN
- Install dependencies with
yarn install
- Run development server with
yarn start:proxy
- Local version of the app will be available at URL printed out to the console (https://stage.foo.redhat.com:1337/insights/policies/)
Cypress is used as the testing framework
yarn run test
- run all Cypress testsyarn run lint
- run linter
The app uses containerized builds which are configured in app-interface
.
Environment | Available at | Deployed version |
---|---|---|
stage | https://console.stage.redhat.com | master branch |
production | https://console.redhat.com | up to the commit configured in app-interface |
Caution
This section is outdated and things might not work properly.
The ui-frontend depends on types from the ui-backend, these are generated from the Openapi spec file, run yarn schema
to reload the types.
Generate types can be found in: src/generated/
, check package.json
for more info.
- Access to Kafka topic
- kafkacat installed and in the PATH
Run yarn pushhost --account <account-number>
.
Use yarn pushhost --help
for more information. For the data being sent,
check src/cli/pushhost.ts.
You can store the account number in .push-host.env under the INSIGHTS_ACCOUNT
and omit the argument from the command line if used frequently.
$ cat .push-host.env
INSIGHTS_ACCOUNT=940527