Example of a study project of a REST API using DDD with Kotlin and Spring, Feel free to give your opinion and send a Pull Request, So we can evolve the example together and make it available to the community.
Stack:
- Kotlin
- Spring Web
- Spring Actuator
- Spring Data
- H2 Database
- Java 8
- Gradle
See more in Wiki page
ℹ️ See Branches to each approach of the structure: DDD, Hexagonal
Build by Gradle
./gradlew clean build
Running by Jar
java -jar build/libs/demo-ddd-account-kotlin*.jar
Test by Postman
To use the Postman Collection:
doc\postman_collection.json
Use Cases:
- Create New Account
- Create New Activity of Credit (Depósito)
- Create New Activity of Debit (Saque)
- Retrieve Account by Number (Extrato)
- Retrieve All Accounts
DDD Access layers:
Hexagonal Architecture / Port Adapter:
The objective of this project is to apply the DDD study using the Kotlin as programming language and
the Web Spring as Web Framework.
By building a REST API exploring the domain of a Bank.
The project is as a public so that they can help evolve the idea and share it with the community.