Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dstr89/hexagonal-java-modules

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project

In this tutorial, we'll implement a simple Java application applying hexagonal architecture design principles.

Additionally, we'll organize our application layers using Java Modules, which requires JDK version 9 or higher.

With this approach, we'll decouple our core business logic and aim to improve understandability and maintainability.

Documentation

For a more detailed description please refer to the article:

https://medium.com/@daniel.strmecki_67382/a-practical-example-of-applying-java-modules-in-a-hexagonal-architecture-d345deec654b

Build

mvn clean package

Run

java -jar infrastructure/target/infrastructure-1.0-jar-with-dependencies.jar

Database

Install MySQL

Tested with MySQL Community version 8.0.20. Download it here: https://dev.mysql.com/downloads/installer/

Create table

USE books_database;
CREATE TABLE books (
    id VARCHAR(40) PRIMARY KEY, 
    title VARCHAR(100) NOT NULL, 
    author VARCHAR(100) NOT NULL, 
    description VARCHAR(100) NOT NULL
);

About

In this tutorial, we implement a simple Java application applying hexagonal architecture design principles. We'll organize our application layers using Java Modules, which requires JDK version 9 or higher. With this approach, we'll decouple our core business logic and aim to improve understandability and maintainability.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.