rost5000 / demo-onion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example Onion project

This is an example of onion project based on Spring boot with database access and

Prerequisites

  1. You need to install jdk 17 or higher
  2. You need to intall golang
  3. You need to run command go get github.com/grpc-ecosystem/grpc-gateway/v2

This project generate from protobuf controllers and clients This approach called "API First"

This projetc has the onion architecture:

  1. domain -- project contains modules
  2. usecase -- project contains buisness logic for microservice
  3. controller-rest -- project contains rest controllers and mappings from dto models to domain.
  4. repository-jpa -- project contains jpa repositories and entities
  5. infrastructure -- project contains infrastructure layer (configs etc...)

Build

gradle clean build

About


Languages

Language:Java 98.5%Language:Dockerfile 1.5%