go-rest-api-boilerplate
๐ Go REST API starter with JWT auth, PostgreSQL, GORM, Docker hot-reload, Swagger docs and clean architecture. One-command setup, comprehensive documentation and TODO tutorial. Perfect for building production APIs quickly or learning Go best practices in web development. Includes tests, CI/CD and deployment guides.
goapidockergolangboilerplatejwtdatabaseauthenticationbackenddocker-composerest-apipostgresql
Overview
GRAB is a production-ready Go REST API boilerplate that helps you ship fast by eliminating days of setup work. Built on clean architecture with PostgreSQL, JWT authentication, Docker support, comprehensive tests and auto-generated documentation, it's designed for teams building scalable APIs following Go industry standards.
Features
jwt-authenticationoauth-2.0-bcp-compliantrefresh-token-rotationrate-limitingcors-supportdatabase-migrationsswagger-documentationpostman-collectiondocker-hot-reloadstructured-loggingstructured-error-handlinggraceful-shutdownbcrypt-password-hashinginput-validationsql-injection-protectionhealth-check-endpointsmulti-stage-docker-buildsenvironment-based-configurationdependency-injectionclean-architecture
Feature Flags
authenticationpaymentsecommerceauthorizationteamsOrgscmsnotificationsapiDocsrateLimitingformsValidationerrorTrackingloggingtestingcidockercorshealthChecksgracefulShutdownenvironmentConfigdependencyInjection
Recommended Use Cases
shipping-fast-mvpsproduction-apisteam-projectsscaling-applicationslearning-go-web-developmentrapid-prototypingenterprise-applications
Frontend
None
Backend
gogingormpostgresqlgolang-migratevipergolang-jwtswaggoair
Auth Providers
jwt
Deployment Targets
dockerawsgcpaws-ecsaws-fargategoogle-cloud-rundigitalocean-app-platformkubernetesvps
Payment Providers
None
Quick Facts
โญ Stars
28
๐ด Forks
15
๐งพ License
mit
๐ Active
Yes
๐ Last Commit
2025-11-04T19:21:29.000Z
GitHub
Stack
Framework
gin
Language
go
Database
postgresql
Auth
jwt
ORM
gorm
Testing
go-testing
CI
github-actions
Data Layer
Databases
postgresql, sqlite
ORM
gorm
UI Stack
Developer Experience
Docker
Yes
Tests
Yes
Quickstart
Yes
env.example
Yes
CI
github-actions
Pricing
Classification
free
Selected
โ
Notes
MIT licensed open-source project