Skip to content

ArnauAregall/kotlin-spring-data-rest-movies

Repository files navigation

kotlin-spring-data-rest-movies

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:


Requirements

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

Build and test

./gradlew build

Run the application

JDK version

./gradlew bootRun

Note: by default requires Postgres to run locally on port 5432.

Native version

./gradlew nativeRun

Note: by default requires Postgres to run locally on port 5432.

Docker

./gradlew bootBuildImage && docker-compose -f src/main/docker/docker-compose.yml up