// the find
Massad/gin-boilerplate
The fastest way to deploy a RESTful API with Gin Framework — PostgreSQL, JWT auth, Redis, PDF generation, and Swagger docs out of the box.
A Gin-based REST API starter with PostgreSQL, Redis-backed JWT auth (access + refresh tokens), Swagger docs, and a PDF generation example using maroto. Targets Go developers who want a working auth skeleton they can build domain logic on top of, rather than wiring up the boring parts themselves.
JWT stored and invalidated in Redis — logout actually works, unlike the common pattern of just letting tokens expire. The refresh token rotation (15-min access, 7-day refresh) is the right default for most APIs. Integration tests hit real Postgres and Redis rather than mocks, so the test suite actually catches connection and query bugs. Actively maintained — last push June 2026, Go 1.24+, dependabot configured.
Raw SQL via sqlx everywhere means schema changes are entirely manual with no migration tooling — you get one database.sql dump and you're on your own after that. The model layer mixes SQL strings directly into struct methods with no abstraction, which gets messy fast as the schema grows. PDF generation and the invoice example are included as first-class features but are genuinely niche — most people adopting this will delete that code immediately. CORS is configured to allow everything by default, and the README buries the production warning at the bottom.