GitHunt

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

Languages

Java100.0%

Contributors

MIT License
Created July 3, 2022
Updated January 14, 2025
0xTheProDev/spring-clean-example | GitHunt