⚠️ Deprecated project. Go to https://github.com/CodelyTV/java-ddd-example to see to the new one.
You can do awesome stuff with Java 🙂
Implementation example of a Java application following Domain-Driven Design (DDD) and Command Query Responsibility Segregation (CQRS) principles, keeping the code as simple as possible.
Take a look, play and have fun with it!
- Install Java:
brew cask install java
- Clone this repository:
git clone https://github.com/CodelyTV/cqrs-ddd-java-example
- Execute some Gradle lifecycle tasks in order to check everything is OK:
- Create the project JAR and other project artifacts:
./gradlew assemble --warning-mode all
- Run the tests and plugins verification tasks:
./gradlew check --warning-mode all
- Execute the main application entrypoint:
./gradlew run --warning-mode all
- Create the project JAR and other project artifacts:
- Start developing!
- Gradle (current version: 5.1.1 - releases):
./gradlew wrapper --gradle-version=5.1.1 --distribution-type=bin
or modifying the gradle-wrapper.properties - JUnit (current version: 5.3.2 - releases):
build.gradle:11
There are a lot of missing things (add swagger/OpenAPI, improve documentation...), feel free to add them if you want!