This codebase was created to demonstrate a fully fledged fullstack application built with Quarkus including CRUD operations, authentication, routing, pagination, and more.
This application basicaly uses Quarkus Framework with Java 8 with some other modules known to development community:
- Hibernate 5
- Jackson for JSON
- H2 in memory database
- JPA Criteria
./gradlew quarkusDev
The server should be running at http://localhost:8080
./gradlew test
The application can be packaged using:
./gradlew build
It produces the quarkus-playground-1.0.0-SNAPSHOT-runner.jar
file in the /build
directory.
Be aware that it’s not an über-jar as the dependencies are copied into the build/lib
directory.
If you want to build an über-jar, execute the following command:
./gradlew build -Dquarkus.package.type=uber-jar
The application is now runnable using java -jar build/quarkus-playground-1.0.0-SNAPSHOT-runner.jar
.
You can create a native executable using:
./gradlew build -Dquarkus.package.type=native
Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true
You can then execute your native executable with: ./build/quarkus-playground-1.0.0-SNAPSHOT-runner
If you want to learn more about building native executables, please consult https://quarkus.io/guides/gradle-tooling.
Improvements are welcome, feel free to contribute.