/java-ddd-example

☕🎯 Hexagonal Architecture + DDD + CQRS in a Java project using SpringBoot

Primary LanguageJava

☕🎯 Hexagonal Architecture + DDD + CQRS Java example with SpringBoot

You can do awesome stuff with Java 🙂

CodelyTV Build Status

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!

🚀 Environment setup

  1. Install Java: brew cask install java
  2. Clone this repository: git clone https://github.com/CodelyTV/cqrs-ddd-java-example
  3. Execute some Gradle lifecycle tasks in order to check everything is OK:
    1. Create the project JAR and other project artifacts: ./gradlew assemble --warning-mode all
    2. Run the tests and plugins verification tasks: ./gradlew check --warning-mode all
    3. Execute the main application entrypoint: ./gradlew run --warning-mode all
  4. Start developing!

🤔 How to update dependencies

🤝 Contributing

There are a lot of missing things (add swagger/OpenAPI, improve documentation...), feel free to add them if you want!