go-boilerplate

Production-ready Go RESTful API boilerplate with Echo

goboilerplatemicroserviceechohttpsgo-crudlabstack-echoorygolang-boilerplatego-boilerplatego-frameworkgo-api-example

Preview

go-boilerplate preview

Overview

Codoworks Go Boilerplate is a backend service skeleton built with Go 1.21 and Echo that provides production-ready structure for rapidly developing RESTful APIs with minimal setup. It includes three separate routers for public, protected and administrative endpoints, built-in authentication via Ory Kratos, authorization via Ory Keto, database support for MySQL/PostgreSQL/SQLite, CLI commands, background workers, logging, migrations and graceful shutdown, enabling developers to focus on business

Features

cli-commandshttp-serverpublic-routerprotected-routerhidden-routerdaemon-processesbackground-workerstasksmiddlewaresauto-error-handlingcors-handlingrequest-timeoutgzip-responsesxss-checkgraceful-shutdowndatabase-migrationsdatabase-seedsjson-formsdata-validationhttp-clientfeature-togglehot-reloadingmulti-router-architecture

Feature Flags

userDashboardauthenticationblogemailslandingpageecommerceauthorizationteamsOrgsjobsQueueapiDocscachingmapsformsValidationloggingerrorTracking

Recommended Use Cases

restful-apimicroservicebackend-servicecrud-operationsproduction-ready-api

Frontend

None

Backend

goechogormory-kratosory-keto

Auth Providers

ory-kratos

Deployment Targets

dockerbinarylocal

Payment Providers

None

Quick Facts

โญ Stars
250
๐Ÿด Forks
33
๐Ÿ”„ Active
Unknown
๐Ÿ•’ Last Commit
2025-07-05T09:03:32.000Z

Stack

Framework
echo
Language
go
Database
postgresql, mysql, sqlite
Auth
ory-kratos
ORM
gorm
Logging
custom-logger

Data Layer

Databases
postgresql, mysql, sqlite, redis
ORM
gorm

UI Stack

Developer Experience

Docker
Yes
Tests
No
Quickstart
Yes
env.example
Yes
CI
github-actions

Pricing

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