strict-clean-arch-go-webservice

module
v0.0.0-...-f3a9913 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT

README

Clean Architecture Template for Golang webservices

A webservice implementation using Golang and strictly following the clean architecture.

The clean architecture visualised:

clean architecture

The folder structure matches the rings in the above diagram. Starting from the innermost ring:

  • The domain folder contains the Enterprise Business Rules - i.e. entities
  • The usecase folder contains the Application Business Rules - i.e. data manipulation
  • The interface folder contains the Interface Adapters - i.e. input/output transformation
  • The infrastructure folder contains the Frameworks and Drivers - i.e. protocol-specific implementations

TODO

  • Add unit tests
  • Add Docker
  • Add CI/CD
  • Add integration tests

Jump to

Keyboard shortcuts

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