gin-boilerplate
Golang API Boilerplate Template using gin, gorm, logrus
golangboilerplatemicroservicerest-apipostgresqlscaffoldmvc-architectureginlive-reloadlogrushot-reloadgorm
Overview
This is a starter template for building REST APIs in Go using the Gin web framework and GORM database library. It provides a pre-configured project structure with environment management, PostgreSQL database setup, Docker support with live reload and example code for creating models, controllers and routes. The boilerplate is designed to speed up API development by handling common setup tasks and offering middleware for CORS, logging and error recovery.
Features
mvc-architecturelive-reloadhot-reloaddockerizedproduction-readycors-middlewareenvironment-configurationdatabase-migrationspgadmin-integration
Feature Flags
userDashboardauthenticationinvoicesblogemailsecommercesearchnotificationsformsValidationloggingcors
Recommended Use Cases
rest-api-developmentmicroservice-architecturerapid-api-prototypingproduction-ready-applications
Frontend
None
Backend
golanggingorm
Auth Providers
None
Deployment Targets
dockerdocker-compose
Payment Providers
None
Quick Facts
โญ Stars
102
๐ด Forks
19
๐งพ License
apache-2.0
๐ Active
Unknown
๐ Last Commit
2025-04-15T05:53:24.000Z
GitHub
Stack
Framework
gin
Language
golang
Database
postgresql
ORM
gorm
Logging
logrus
Data Layer
Databases
postgresql
ORM
gorm
UI Stack
Developer Experience
Docker
Yes
Tests
No
Quickstart
Yes
env.example
Yes
Pricing
Classification
free
Selected
4 usd / month
Notes
Open source boilerplate template