In this project, I'm demonstrating how to implement the modulith app using Spring support. Here are the docs about the project.
- How to organize the SpringBoot in modular way and use Spring Modulith to simplify and verify the app structure: Guide to Modulith with Spring Boot
Our sample app is divided into 4 logical modules:
- department - manage
Department
entity - employee - manage
Employee
entity - gateway - expose internal modules over REST API
- organization - manage
Organization
entity
The following picture illustrates the architecture described above.
You need to have JDK17+ and Maven. Also run Docker on your machine to enable Zipkin container. Then just run the app with the following command:
$ mvn spring-boot:run