This is documentation for:
- Insights environments
- Red Hat Insights Frontend Components
- Insights Chroming
- Redux examples
- API examples
- In prod, pre prod, and on local dev environments (insights-proxy) all of the API is accessible via the same hostname that the frontend is served. You dont need to go to api.access* in prod to hit /r/insights/. You can safely call using the path "/r/insights" on the same hostname. So no need to use CORS in your frontend/api.
- Insights Chrome will handle web frontend authentication challenge, and auth session management for you. If you app is chromed and you are logged in you can expect that a JWT is going back to 3scale automatically and 3scale is handling the validation of that JWT for you. (This is not yet implemented in Chrome, but it is coming soon)
git clone git@github.com:RedHatInsights/insights-frontend-storybook.git
npm install
- (optional) set up insights-proxy
- only required for insights-chrome's stories to run
- Run
- 'npm run lint' to check linting
npm run start
to develop storybook pagesnpm run build
to build the storybook, used for testing
- Naviage to
localhost:6006
- This project uses Markdownlint-cli for linting the src/docs/ files
- Rules can be found at: https://github.com/DavidAnson/markdownlint#rules--aliases
- Overrides are in the
.markdownlint.json
file