Sandbox UI for the smartevents application.
- Node 16
- npm 7
The project requires the code to be formatted by prettier
. This is done automatically as a pre-commit
hook. To activate the hook, please initialize the project with the command below.
npm install
If you would like to format code manually, you can do it as:
npm run format
npm install
npm run start
This will start the standalone app on https://prod.foo.redhat.com:1337/
.
- make sure you have
127.0.0.1 prod.foo.redhat.com
in your hosts file for this to work.
npm install
npm run start:federate
This will run a dev server on http://localhost:9006 that will serve a federated module named smart_events
.
The OpenAPI SDK is located in the openapi/generated
directory.
It's possible to generate a fresh SDK by running:
npm run fetch-openapi
npm run generate-openapi
The first script will download the OpenAPI spec from the sandbox
repo, replacing openapi/smart-events.yml
.
The second one will delete the existing SDK and generate a new one.