Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hantsy/micronaut-sandbox

Micronaut playground
https://github.com/hantsy/micronaut-sandbox

gradle groovy jdbc jpa kotest kotlin kotlin-coroutines micronaut micronaut-data mongo mongodb r2dbc reactive-streams spock

Last synced: about 2 months ago
JSON representation

Micronaut playground

Awesome Lists containing this project

README

        

# Micronaut Sandbox

Personal playground of experiencing new features of [Micronaut framework](https://micronaut.io).

## Examples

The following table lists all examples in this repository.

| Name | Language | Description |
|------------|----------|------------------------------------------------------|
| [data-jpa-post-service](https://github.com/hantsy/micronaut-sandbox/tree/master/data-jpa-post-service) | Java | Data JPA, Test Resources, JUnit |
| [data-jdbc](https://github.com/hantsy/micronaut-sandbox/tree/master/data-jdbc) | Java | Data Jdbc, Test Resources, JUnit |
| [data-jdbc-testcontainers](https://github.com/hantsy/micronaut-sandbox/tree/master/data-jdbc-testcontainers) | Java | Data Jdbc, Testcontainers, JUnit |
| [data-jdbc-kotlin](https://github.com/hantsy/micronaut-sandbox/tree/master/data-jdbc) | Kotlin | Data Jdbc, Test Resources, Kotest |
| [data-r2dbc](https://github.com/hantsy/micronaut-sandbox/tree/master/data-r2dbc) | Java | Data R2dbc, Test Resources, JUnit |
| [data-r2dbc-kotlin-co](https://github.com/hantsy/micronaut-sandbox/tree/master/data-r2dbc-kotlin-co) | Kotlin | Data R2dbc, Test Resources, Kotest |
| [data-hibernate-reactive](https://github.com/hantsy/micronaut-sandbox/tree/master/data-hibernate-reactive) | Java | Data Hibernate Reactive, Test Resources, JUnit |
| [data-mongodb-groovy](https://github.com/hantsy/micronaut-sandbox/tree/master/data-mongodb-groovy) | Groovy | Data MongoDB, Testcontainers, Spock |
| [mongodb-album-service](https://github.com/hantsy/micronaut-sandbox/tree/master/mongodb-album-service) | Java | MongoDB Async, TestContainers, Spock |
| [rxjava3-vertx-pg-client](https://github.com/hantsy/micronaut-sandbox/tree/master/rxjava3-vertx-pg-client) | Java | RxJava3, Vertx Pg Client, TestContainers, JUnit |
| [hibernate-gorm](https://github.com/hantsy/micronaut-sandbox/tree/master/hibernate-gorm) | Groovy | (_Deprecated_) Hibernate GORM, Testcontainers, Spock |

## Docs

- Go to [hantsy.github.io/micronaut-sandbox/](https://hantsy.github.io/micronaut-sandbox/).

## Build

### Prerequisites

Make sure you have installed the following software.

- JDK 21
- Gradle 8+
- Docker

### Build & Run

Start up databases.

```bash
docker compose up postgres
```

Enter the project folder.

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

```bash
./gradlew build
```

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

```bash
./gradlew run
```

## Contribution

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

## References

- [Micronaut Guides](https://docs.micronaut.io/latest/guide/index.html/)