Skip to content

Commit b7eedd0

Browse files
committed
Add ui demo target
1 parent 6719e1e commit b7eedd0

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

Makefile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,20 @@ down:
4343
repo-clean:
4444
rm -rf ~/.m2/repository/com/studiomediatech/query-response-spring-amqp
4545

46-
.PHONY: demo run-demo
46+
##
47+
## Demo targets
48+
##
49+
## These targets are used to run the demo application and its components.
50+
## They depend on the `install` target to ensure that the application is built
51+
## and ready to run. The up target starts the necessary Docker containers,
52+
## and the run-demo target orchestrates the execution of the demo components.
53+
## Please note that the parallel execution of the demo components is what makes
54+
## it possible to start the individual components in the background.
55+
##
56+
.PHONY: demo run-demo run-demo run-query run-response run-ui
4757
demo: install up
4858
${MAKE} -j3 run-demo
4959

50-
.PHONY: run-demo run-query run-response run-ui
5160
run-demo: run-ui run-query run-response
5261

5362
run-query:
@@ -59,4 +68,4 @@ run-response:
5968
${MAKE} -C examples/responding/
6069

6170
run-ui:
62-
${MAKE} -C ui/
71+
${MAKE} demo -C ui/

ui/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
JAVA_HOME=$(shell unset JAVA_HOME; /usr/libexec/java_home -v 21)
22
MVN := ../mvnw
33

4-
.PHONY: run build test verify v clean tidy
4+
.PHONY: run demo build test verify v clean tidy
55

66
run:
77
${MVN} spring-boot:run
@@ -10,14 +10,16 @@ test verify v:
1010
${MVN} clean verify
1111

1212
build:
13-
${MVN} clean prepare-package -DskipTests
13+
${MVN} clean prepare-package
1414
mkdir -p target/classes/static
1515
@$(MAKE) -C ../ui-frontend build
1616
cp -r ../ui-frontend/dist/* target/classes/static/
17-
${MVN} package -DskipTests
17+
${MVN} package
1818

1919
clean:
2020
rm -rf target/
2121

2222
tidy:
2323
${MVN} formatter:format
24+
25+
demo: build run

0 commit comments

Comments
 (0)