Skip to content

hantsy/micronaut-sandbox

Repository files navigation

Micronaut Sandbox

Personal playground of experiencing new features of Micronaut framework.

Examples

The following table lists all examples in this repository.

Name Language Description
data-jpa-post-service Java Data JPA, Test Resources, JUnit
data-jdbc Java Data Jdbc, Test Resources, JUnit
data-jdbc-testcontainers Java Data Jdbc, Testcontainers, JUnit
data-jdbc-kotlin Kotlin Data Jdbc, Test Resources, Kotest
data-r2dbc Java Data R2dbc, Test Resources, JUnit
data-r2dbc-kotlin-co Kotlin Data R2dbc, Test Resources, Kotest
data-hibernate-reactive Java Data Hibernate Reactive, Test Resources, JUnit
data-mongodb-groovy Groovy Data MongoDB, Testcontainers, Spock
mongodb-album-service Java MongoDB Async, TestContainers, Spock
hibernate-gorm Groovy (Deprecated) Hibernate GORM, Testcontainers, Spock

Docs

Build

Prerequisites

Make sure you have installed the following software.

  • JDK 17
  • Gradle 7.2+
  • Docker

Build & Run

Start up databases.

docker compose up postgres

Enter the project folder.

Run the following command to build the application and run all tests.

./gradlew build

To run the application by Gradle command, use the following command instead.

./gradlew run

Contribution

Any suggestions are welcome, filing an issue or submitting a PR is also highly recommended.

References