Compare commits

...

2 commits

Author SHA1 Message Date
e6ba80aa22 Added a README 2023-10-23 04:33:46 -07:00
081b8ef559 Fixed test running 2023-10-23 04:33:23 -07:00
2 changed files with 41 additions and 3 deletions

34
README.md Normal file
View file

@ -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
```

View file

@ -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) {