This is an example of onion project based on Spring boot with database access and
- You need to install jdk 17 or higher
- You need to intall golang
- 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:
- domain -- project contains modules
- usecase -- project contains buisness logic for microservice
- controller-rest -- project contains rest controllers and mappings from dto models to domain.
- repository-jpa -- project contains jpa repositories and entities
- infrastructure -- project contains infrastructure layer (configs etc...)
gradle clean build