Demo project to showcase how to build a REST HAL API application using:
- Kotlin
- Gradle
- Spring Boot 3
- Querydsl
- JPA
- Flyway
- PostgreSQL
- Docker & Testcontainers
Articles that were written based in this project, in order:
- Building and testing a REST HAL API using Kotlin, Spring Data REST and JPA
- Integration between Querydsl and Spring Data REST using Kotlin, Gradle and Spring Boot 3
The application requires JDK 17 at least on a GraalVM distribution.
$ sdk install java 22.3.r17-grl
$ sdk use java 22.3.r17-grl
./gradlew build
./gradlew bootRun
Note: by default requires Postgres to run locally on port 5432.
./gradlew nativeRun
Note: by default requires Postgres to run locally on port 5432.
./gradlew bootBuildImage && docker-compose -f src/main/docker/docker-compose.yml up