do-template-api
๐ ๏ธ API boilerplate showcasing github.com/samber/do
goapitemplateiocboilerplatehealthcheckdependency-injectioncontainerinjectorfixwiredi
Overview
This is a Go REST API boilerplate that demonstrates the samber/do dependency injection library. It includes PostgreSQL integration, a modular architecture with service and repository layers, Gin web framework, configuration management and production-ready features like health checks and graceful shutdown, serving as both a starter template and learning resource for building type-safe Go web applications.
Features
type-safe-dependency-injectionmodular-architecturerest-apiconfiguration-managementpostgresql-integrationconnection-poolingdatabase-migrationsrepository-patternservice-layerhealth-checksgraceful-shutdownerror-handlingstructured-loggingdependency-tree-visualization
Feature Flags
authenticationjobsQueuenotificationsformsValidationhealthcheckgracefulShutdowndependencyInjectionerrorHandlinglogging
Recommended Use Cases
rest-api-developmentlearning-dependency-injectionproduction-ready-api-projects
Frontend
None
Backend
gogin
Auth Providers
None
Deployment Targets
verceldocker
Payment Providers
None
Quick Facts
Stack
Framework
gin
Language
go
Database
postgresql
ORM
sql
Data Layer
Databases
postgresql
UI Stack
Developer Experience
Docker
Yes
Tests
Yes
Quickstart
Yes
env.example
No
Pricing
Classification
free
Selected
4 usd / month
Notes
Open source project with MIT license