Skip to content

0xTheProDev/spring-clean-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-clean-example

Java Spring Apache Tomcat OpenAPI GraphQL Open Issues Closed Issues Open Pulls Closed Pulls Contributors Activity

Description

Example Application Interface using Spring framework in Java

This example showcases Repository Pattern in Hexagonal Architecture (also known as Clean Architecture). Here we have two Entities - Books and Authors, whose relationships have been exploited to create CRUD endpoint in REST under OpenAPI standard.

Installation

  • Run the application using Maven:

    $ ./mvnw spring-boot:run
  • For Windows users:

    $ mvnw spring-boot:run

Testing

  • Run test suite along with Coverage reporting:

    $ ./mvnw jacoco:prepare-agent test install jacoco:report

    or for Windows

    $ mvnw jacoco:prepare-agent test install jacoco:report

Swagger UI

  • Open Swagger UI at localhost:8080/swagger-ui after running the application.

License

© MIT License