microservice-example

module
v0.0.0-...-b113d69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: MIT

README

Golang DDD / gRPC / Hexagonal Architecture Example

This repository holds an example of how you may structure a Golang microservice. The structure of this service follows principles from Hexagonal Architecture (ports/adapters) and Domain Driven Design. It exposes a gRPC transport layer (adapter) for internal communication between other services. The idea of this repository is to share an approach to how you could structure microservices in Golang.

Project structure

internal/app/ holds the core application layer as "services".

Running the service locally

make build 
make run 

Generating Proto

make proto-health

Directories

Path Synopsis
internal
app
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL