https://github.com/schneidersteve/buckpal-kotlin
Kotlin Example Implementation of a Hexagonal/Onion/Clean Architecture
https://github.com/schneidersteve/buckpal-kotlin
clean-architecture dependency-injection hexagonal-architecture inversion-of-control kotlin kotlin-coroutines micronaut micronaut-data onion-architecture r2dbc spock
Last synced: 2 months ago
JSON representation
Kotlin Example Implementation of a Hexagonal/Onion/Clean Architecture
- Host: GitHub
- URL: https://github.com/schneidersteve/buckpal-kotlin
- Owner: schneidersteve
- License: agpl-3.0
- Created: 2022-11-02T15:39:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-04T17:40:23.000Z (about 1 year ago)
- Last Synced: 2024-04-05T09:45:51.723Z (about 1 year ago)
- Topics: clean-architecture, dependency-injection, hexagonal-architecture, inversion-of-control, kotlin, kotlin-coroutines, micronaut, micronaut-data, onion-architecture, r2dbc, spock
- Language: Kotlin
- Homepage:
- Size: 215 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kotlin Example Implementation of a Hexagonal/Onion/Clean Architecture
Inspired by https://github.com/thombergs/buckpal
- Java Version: https://github.com/schneidersteve/buckpal-java
- Rust Version: https://github.com/schneidersteve/buckpal-rust
- Dart Version: https://github.com/schneidersteve/buckpal-dart## Tech Stack
* [Kotlin](https://kotlinlang.org)
* [Kotlin Coroutines](https://kotlinlang.org/docs/coroutines-overview.html)
* [Spock](https://github.com/spockframework/spock)
* [Micronaut](https://micronaut.io)
* [Micronaut Data - R2DBC](https://micronaut-projects.github.io/micronaut-data/latest/guide/#dbc)
* [IntelliJ IDEA Community Edition](https://www.jetbrains.com/idea/download)## Layers and Dependency Inversion

## Send Money Use Case
```gherkin
Feature: Send MoneyScenario: Transaction succeeds
Given a source account
And a target accountWhen money is send
Then send money succeeds
And source account is locked
And source account withdrawal will succeed
And source account is releasedAnd target account is locked
And target account deposit will succeed
And target account is releasedAnd accounts have been updated
```# Gradle Examples
> ./gradlew test
> ./gradlew test -t