#106106th of 110 in Backend and cloud templates
go-gin-example
Go and Gin blog REST API example with JWT, MySQL, Redis and Swagger
Run it:RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Affiliate links, no effect on a rank.
- Stars
- 7.2k
- License
- MIT
- Last commit
- Mar 2026
- Language
- Go
7,124 on 26 Apr 20267,199 on 22 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
A layered Go REST API for a blog, built on Gin and GORM with MySQL storage and Redis caching. It covers article and tag CRUD with soft delete, JWT login, image upload, QR-code article posters and Excel import/export of tags. Swagger UI is served at /swagger. It is a reference example with no AI features.
Who it is for: Go developers learning Gin API structure with MySQL and Redis
Strengths
- Clear handler, service and model layering that is easy to read and copy
- JWT auth, Redis caching, pagination and Swagger docs in one small codebase
- Ships SQL schema, ini config, Makefile and Dockerfile for a quick local run
- MIT licensed, last commit March 2026
Weaknesses
- No AI or model features; it is a plain CRUD blog API
- Uses older libraries: jinzhu/gorm, dgrijalva/jwt-go, Go 1.13+ baseline
- Sample config ships JwtSecret = 233 and a root database password
- Needs external MySQL and Redis; the docker run command does not provide them
What it needs
- Go
- Needs MySQL 5.6+, Redis
- Docker
Also in Backend and cloud templates
See all 110| Rank | Project | Score |
|---|---|---|
| #104 | itty-routerTiny TypeScript HTTP router for Cloudflare Workers and other serverless runtimes | 34 out of 100 |
| #105 | symfony-7-es-cqrs-boilerplateSymfony 7 reference app for DDD, CQRS and event sourcing | 34 out of 100 |
| #107 | edwinhern/express-typescriptExpress and TypeScript backend starter with Zod validation and Swagger docs | 19 out of 100 |
| #108 | genai-apiHono API on Cloudflare Workers proxying Gemini with bearer auth | 17 out of 100 |
| #109 | geekyants/express-typescriptExpress and TypeScript API boilerplate with MongoDB, Passport and JWT | 14 out of 100 |