A Hawtio reimplementation based on TypeScript + React. This project reimplements the following Hawtio JS components in one project:
This project was generated with Create React App and is managed through CRACO for customised Webpack configurations.
See also Developing Hawtio.next for the project styling, guidelines, and more details on development.
You need to have installed the following tools before developing the project.
After checking out the project, run the following command to set up the project dependencies.
yarn install
To develop the project, run the following command and then open http://localhost:3000/ in the browser.
yarn start
Then run another Java application which has a Jolokia endpoint from a different terminal, and connect to it from the Connect tab in the Hawtio console. For example, you can run this Spring Boot example in background.
mvn spring-boot:run
You can connect to this example application at the Jolokia URL: http://localhost:10001/actuator/hawtio/jolokia. Open the Connect tab and create a connection with the following parameters:
- Name: <any name>
- Scheme: HTTP
- Host:
localhost
- Port:
10001
- Path:
/actuator/hawtio/jolokia
To build the project for production, run the following command. It's built into the build/
directory.
yarn build
To execute the unit tests, run the following command.
yarn test
It is recommended to run linting against the code periodically with the following command.
yarn lint