README.md 1.31 KB
Newer Older
1 2 3 4
spring-boot-admin-server-ui
================================

### Building this module
5 6
The jar **can be build 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:
7

8 9 10 11
### Running Spring Boot Admin Server for development
To develop the ui on an running server the best to do is

1. Running the ui build in watch mode so the resources get updated:
12
```shell
13 14 15 16 17 18 19 20
npm run watch
```
2. Run a Spring Boot Admin Server instances with the template-location and resource-location pointing to the build output and disable caching:
```
spring.boot.admin.cache.no-cache: true
spring.boot.admin.resource-locations: file://@project.basedir@/../../spring-boot-admin-server-ui/target/dist/
spring.boot.admin.template-location: file://@project.basedir@/../../spring-boot-admin-server-ui/target/dist/
spring.boot.admin.cache-templates: false
21
```
Johannes Edmeier committed
22
Or just start the [spring-boot-admin-sample-servlet](../spring-boot-admin-samples/spring-boot-admin-sample-servlet) project using the `dev` profile.
23

24
### Build
25
```shell
26 27
npm install
npm run build
28 29
```

30
Repeated build with watching the files:
31
```shell
32
npm run watch
33 34
```

35
## Run tests
36
```shell
37
npm run test
38
```
39 40 41

Repeated tests with watching the files:
```shell
42 43
npm run watch:test
```