React.js registration-assistant app for Red Hat Insights provides an in-application interactive experience which helps guide the user through the registration process to get the Red Hat Insights client installed and registered on their systems. We believe by nurturing the customer through the process and providing a clear call to action around installation within the applications, we can help drive additional adoption increasing the breadth of Insights registrations for an account.
- Make sure you have Node.js version >16 installed
- Run script to patch your
/etc/hosts
- Make sure you are using Red Hat proxy
- Install dependencies with
npm install
- Run development server with
npm run start:proxy
- Local version of the app will be available at https://stage.foo.redhat.com:1337/insights/registration
If you encounter any problems try to consult the Troubleshooting page.
Jest is used as the testing framework, although there are currently no Jest tests present. npm run verify
will run linters and tests. Travis is used to test the build for this code.
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 |
This project uses Patternfly React.
This app imports components from Insights Front-end Components library. ESI tags are used to import Insights Chrome which takes care of the header, sidebar, and footer. These libraries are described in the Platform experience documentation.