An open API service indexing awesome lists of open source software.

https://github.com/vspiewak/spring-hexagonal

A REST API boilerplate using Hexagonal Architecture and Spring Boot 3
https://github.com/vspiewak/spring-hexagonal

archunit cucumber hexagonal-architecture jacoco liquibase rest-assured spotless spring-boot testcontainers

Last synced: 26 days ago
JSON representation

A REST API boilerplate using Hexagonal Architecture and Spring Boot 3

Awesome Lists containing this project

README

          

# Spring Hexagonal Architecture

A Hexagonal Architecture REST API Boilerplate built with Spring Boot 3

## โœจ Features

* ๐Ÿค Contract first API
* ๐ŸŒ Spring MVC
* ๐Ÿฉบ Actuator
* ๐Ÿ—„๏ธ Data JPA
* ๐Ÿงฌ Liquibase
* ๐Ÿ—๏ธ ArchUnit
* ๐Ÿงช Rest Assured
* ๐Ÿณ TestContainers
* ๐Ÿฅ’ Cucumber
* ๐Ÿ“Š Jacoco coverage
* ๐ŸŽจ Spotless
* ๐Ÿช Git pre-commit hook

## ๐Ÿ› ๏ธ Commands

### ๐ŸŽจ Format code

./mvnw spotless:apply

### ๐Ÿš€ Run

docker-compose up -d
./mvnw clean spring-boot:run

### โšก๏ธ Run with samples data

./mvnw clean spring-boot:run -Dspring-boot.run.profiles=with-samples

### ๐Ÿงช Launch Tests

./mvnw clean test

### ๐Ÿ“Š Coverage

./mvnw clean jacoco:report