From 081b8ef559c3b643a38e5052e47502bd00eca813 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 23 Oct 2023 04:33:23 -0700 Subject: [PATCH 1/2] Fixed test running --- .../java/com/example/springboot/ApplicationBuild.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/bld/java/com/example/springboot/ApplicationBuild.java b/src/bld/java/com/example/springboot/ApplicationBuild.java index f2c039d..19ded19 100644 --- a/src/bld/java/com/example/springboot/ApplicationBuild.java +++ b/src/bld/java/com/example/springboot/ApplicationBuild.java @@ -1,6 +1,6 @@ package com.example.springboot; -import rife.bld.BaseProject; +import rife.bld.WebProject; import java.util.List; @@ -8,7 +8,7 @@ import static rife.bld.dependencies.Repository.MAVEN_CENTRAL; import static rife.bld.dependencies.Scope.compile; import static rife.bld.dependencies.Scope.test; -public class ApplicationBuild extends BaseProject { +public class ApplicationBuild extends WebProject { public ApplicationBuild() { pkg = "com.example.demo"; name = "DemoApplication"; @@ -28,7 +28,11 @@ public class ApplicationBuild extends BaseProject { version(3, 1, 5))); scope(test) .include(dependency("org.springframework.boot", "spring-boot-starter-test", - version(3, 1, 5))); + version(3, 1, 5))) + .include(dependency("org.junit.jupiter", "junit-jupiter", + version(5, 10, 0))) + .include(dependency("org.junit.platform", "junit-platform-console-standalone", + version(1, 10, 0))); } public static void main(String[] args) { From e6ba80aa22f5e7f6609d795813cb11dc40b14d4b Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 23 Oct 2023 04:33:46 -0700 Subject: [PATCH 2/2] Added a README --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ec3935a --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +# RIFE2 Spring Boot Example + +Based on the Spring Guides' [Sping Boot](https://github.com/spring-guides/gs-spring-boot) web application example. + +## Run the Application + +To run the web application, issue the following command: + +``` +./bld run +``` + +To access the web application, issue the follow command: + +``` +curl localhost:8080 +``` + +To access the web application services: + +``` +curl localhost:8880/ +curl localhost:8080/actuator/health +curl localhost:8080/actuator/info +curl localhost:8080/actuator/shutdown +``` + +## Test the Application + +To run the web application tests, issue the following command: + +``` +./bld test +``` \ No newline at end of file