This project aims to explain a smooth migration path from a Spring Boot application to Quarkus. It:
Regardless of the runtime, the application uses PostgreSQL and Keycloak.
A infrastructure/docker-compose
file starts these required services.
Run:
docker-compose -f ./infrastructure/docker-compose.yaml up
Once started (can take a few minutes), open http://localhost:8180/auth/admin/ and login with admin/admin
.
This repo provides 2 versions of the application:
- a Spring version
- a Quarkus version
Build it with:
mvn -B clean verify -f spring/pom.xml
Run it with:
java -jar spring/target/universal-todo-spring-1.0.0-SNAPSHOT.jar
To build the Quarkus application in JVM mode, run:
mvn -B clean verify -f quarkus/pom.xml
Run it with:
java -jar quarkus/target/quarkus-app/quarkus-run.jar```
To build the native executable, run:
```bash
mvn -B clean verify -f quarkus/pom.xml -Pnative
Run the native-executable with:
quarkus/target/universal-todo-quarkus-1.0.0-SNAPSHOT-runner