golang-boilerplate

Production-ready Go API boilerplate: Echo, FX DI, Postgres, Redis, JWT, Swagger.

gogolangboilerplatekeycloakechorest-apipostgresqlclean-architectureobservabilitygolang-boilerplatesentryi18n
FreeRepo

Preview

golang-boilerplate preview

Overview

This is a production-ready Go web application boilerplate built with Echo framework and Uber FX dependency injection. It includes clean architecture patterns, PostgreSQL database with migrations, Redis caching, JWT authentication via Keycloak, structured logging with Logrus, error handling, observability through New Relic and Sentry, Docker support and comprehensive testing and API documentation.

Features

clean-architecturedependency-injectiondto-model-separationcomprehensive-error-handlingjwt-authenticationkeycloak-integrationredis-cachingpostgresql-databasestructured-loggingobservabilitynew-relic-apmsentry-error-trackingaws-ses-emaildatabase-migrationshealth-checksswagger-documentationrate-limitingcors-middlewareconnection-poolingdatabase-health-monitoring

Feature Flags

authenticationblogemailsrealtimeauthorizationteamsOrgsi18nloggingErrorTrackingnotificationsapiDocscachingrateLimitingmapshealthChecksloggingmonitoringerrorTrackingcorsswaggerdockertesting

Recommended Use Cases

production-ready-apimicroservicerest-api-backendenterprise-application

Frontend

None

Backend

goechopostgresqlrediskeycloak

Auth Providers

jwtkeycloak

Deployment Targets

dockeraws

Payment Providers

None

Quick Facts

โญ Stars
0
๐Ÿด Forks
0
๐Ÿ”„ Active
Unknown

Stack

Framework
echo
Language
go
Database
postgresql
Auth
jwt, keycloak
Testing
testify
Monitoring
new-relic, sentry
Logging
logrus
i18n
translator

Data Layer

Databases
postgresql, redis

UI Stack

Developer Experience

Docker
Yes
Tests
Yes
Quickstart
Yes
env.example
Yes

Pricing

Classification
free
Selected
โ€”
Notes
Open source boilerplate template
Get Started with this Boilerplate