Skip to content

piomin/sample-spring-modulith

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modulith with Spring Boot Demo Project Twitter

CircleCI

SonarCloud Bugs Coverage Lines of Code

In this project, I'm demonstrating how to implement the modulith app using Spring support. Here are the docs about the project.

  1. 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

Architecture

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.


Running

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