A sample Spring Boot application following Tomato Architecture
APACHE-2.0 License
A sample Spring Boot application following Tomato Architecture
The application is configured to use Docker Compose to start the dependent services (Postgres, Kafka).
You can simply run BookStoreApplication.java
from your IDE to start the application.
NOTE: To work with Kafka transparently from both local and container, add 127.0.0.1 broker
entry in /etc/hosts
file.
To know more about Spring Boot Docker Compose Support, you can watch the following video.
You can also start the application from commandline as follows:
$ ./mvnw spring-boot:run
You can run the tests as follows:
$ ./mvnw test
The application is using Spring Modulith to verify the module boundaries. To know more about Spring Modulith, you can watch the following video.