Giter VIP home page Giter VIP logo

spring-querydsl-project-template's Introduction

Spring QueryDsl Project Template

Build Status Coverage Status

There are Java project template that integrates next technologies:

  1. Spring Boot 2
  2. Spring Data JPA
  3. QueryDSL JPA
  4. Liquibase
  5. Postgres
  6. MapStruct
  7. Lombok
  8. JUnit 5 + Integration Tests

Build

To build the project it is require to use next command

gradlew clean build

To build docker image it will require to use

docker build . -t app-template

Run

To run the project it is require to use docker-compose

docker-compose -f ./docker/docker-compose.yaml up

To run only project dependencies it is require to evaluate

docker-compose -f ./docker/docker-compose-deps.yaml up

Architecture

Application provide next folder structure

src
    /itest
    /main
    /test

Application provides next folders:

  • itest - this folder contains integration tests
  • main - this folder contains application code
  • test - this folder contains JUnit 5 tests

Main application contains folder structure that represent (hexagonal architecture)

com.softeq.app
    .domain
    .services
    .config
    .adapters
        .api
        .jpa

There are list of packages:

  • domain - this folder contains domain model of the application and repository interfaces
  • services - this folder contains services of the application
  • config - current folder contains application configurations
  • adapters - current folder contains external services adapters

Project contains several base classes:

  1. AbstractITest - base integration test that configure context and rollback options for the tests
  2. AbstractRepositoryImpl - base class for queryDsl based repositories

Gradle build support next options:

  1. -PdisableIntegrationTests - this option allow to disable integration tests
  2. -PdisableJacoco - this options allow to disable code coverage checks

To build the code successfully it is required > 80% code coverage! This requirement automatically checked during build by JaCoCo plugin.

License

MIT

spring-querydsl-project-template's People

Contributors

vsverzhinsky avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.