Skip to content

The LeasingNinja in Java with DDD style bounded contexts and domain model. UI in Spring WebMVC.

License

Notifications You must be signed in to change notification settings

leasingninja/leasingninja-java-boundedcontexts-domainmodel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7636f0c · Mar 27, 2025
Mar 27, 2025
Jul 7, 2022
Aug 16, 2022
Jul 11, 2024
Jul 12, 2024
Dec 23, 2021
Jul 7, 2022
Jul 10, 2024
Jan 5, 2023
Dec 2, 2021
Oct 2, 2024
Oct 14, 2023
Jul 7, 2022
Jul 7, 2022
Jul 7, 2022
Jan 5, 2023
Mar 27, 2025

Repository files navigation

leasingninja-java-boundedcontexts-domainmodel

The LeasingNinja in Java with DDD style bounded contexts and domain model. UI in Spring WebMVC.

If you haven't visited leasingninja.io yet, should do so now, as its the introduction to the further text.

In Java we implement entities and value objects as classes. We start with the central entity Contract.

Build Instructions

For the time being we’re wrestling with the module system, so we have to play some tricks. It is either:

  • build with Maven without tests:

    ./mvnw package -Dmaven.test.skip=true
  • build with Maven without Jigsaw

    bin/enable-jigsaw.sh disable && ./mvnw test && bin/enable-jigsaw.sh enable

Run with Docker

Start the web app:

docker-compose up

Open http://localhost:8080 in your browser.

Run without Docker

Install LeasingNinja to your Maven repository:

bin/enable-jigsaw.sh disable && ./mvnw install && bin/enable-jigsaw.sh enable

Start the web app:

./mvnw -pl leasingninja-webapp spring-boot:run -Dspring-boot.run.jvmArguments=-enableassertions

You might want to see more logging:

./mvnw -pl leasingninja-webapp spring-boot:run -Dspring-boot.run.jvmArguments=-enableassertions -Dspring-boot.run.arguments=--logging.level.io.leasingninja=TRACE

Open http://localhost:8080 in your browser.