Skip to content

leasingninja/leasingninja-java-boundedcontexts-domainmodel

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published