Production-ready template for Go backends following DDD and Hexagonal architecture.
Before using this template for a real project, you should replace the generic module name (example.com/yourorg/yourservice) with your own (e.g., github.com/myusername/myproject).
- Rename the module in
go.mod. - Find and replace all occurrences of
example.com/yourorg/yourservicein all.gofiles with your new module name.
make tidy
make run
# http://localhost:8080/healthz- docs/GETTING_STARTED.md
- docs/ARCHITECTURE.md
- docs/API_REFERENCE.md
- docs/SWAGGER_GUIDE.md
- Clean layering (Domain, Application, Ports, Adapters)
- JSON logging (slog), config via env
- JWT auth with protected routes
- Example endpoints illustrating the full flow