spring-boot-admin-server-ui/README.md
The jar can be built with Maven with the maven-exec-plugin. To do this node.js and npm must be installed on your machine and be on your $PATH.
If you don't want to use the maven exec run the following commands:
To develop the ui on a running server the best to do is
npm run build:watch
spring.boot.admin.ui.cache.no-cache: true
spring.boot.admin.ui.resource-locations: file:../../spring-boot-admin-server-ui/target/dist/
spring.boot.admin.ui.template-location: file:../../spring-boot-admin-server-ui/target/dist/
spring.boot.admin.ui.cache-templates: false
Or just start the spring-boot-admin-sample-servlet
project using the dev profile. You also might want to use the insecure profile so you don't need to login.
If you are using hierarchical projects (like the samples here), you have to point "Working directory" in your run config to the Project you are running. In IntelliJ IDEA you can simply use "$MODULE_DIR$".
npm install
npm run build
Repeated build with watching the files:
npm run watch
npm run test
Repeated tests with watching the files:
npm run test:watch
npm run storybook
For some recurring UI elements we have created components that should be reused. To see how they work and which options (props) they provide, use Storybook (see https://storybook.js.org/).