#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.

Releases and problems feed (RSS)

Stars
7.2k
License
MIT
Last commit
Mar 2026
Language
Go
Stars, last 30 weeks+75
26 Apr 2026: 7,124 stars3 May 2026: 7,126 stars10 May 2026: 7,130 stars17 May 2026: 7,134 stars24 May 2026: 7,138 stars31 May 2026: 7,142 stars7 Jun 2026: 7,145 stars14 Jun 2026: 7,147 stars21 Jun 2026: 7,149 stars28 Jun 2026: 7,151 stars5 Jul 2026: 7,154 stars12 Jul 2026: 7,155 stars19 Jul 2026: 7,156 stars26 Jul 2026: 7,156 stars2 Aug 2026: 7,157 stars9 Aug 2026: 7,160 stars16 Aug 2026: 7,168 stars23 Aug 2026: 7,171 stars30 Aug 2026: 7,172 stars6 Sept 2026: 7,176 stars13 Sept 2026: 7,178 stars20 Sept 2026: 7,182 stars27 Sept 2026: 7,185 stars4 Oct 2026: 7,185 stars11 Oct 2026: 7,187 stars18 Oct 2026: 7,187 stars25 Oct 2026: 7,189 stars1 Nov 2026: 7,192 stars8 Nov 2026: 7,192 stars15 Nov 2026: 7,195 stars22 Nov 2026: 7,199 stars

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
Also in Backend and cloud templates
RankProjectScore
#104itty-routerTiny TypeScript HTTP router for Cloudflare Workers and other serverless runtimes2.1k starsMIT34 out of 100
#105symfony-7-es-cqrs-boilerplateSymfony 7 reference app for DDD, CQRS and event sourcing1.1k starsMIT34 out of 100
#107edwinhern/express-typescriptExpress and TypeScript backend starter with Zod validation and Swagger docs1.2k starsMIT19 out of 100
#108genai-apiHono API on Cloudflare Workers proxying Gemini with bearer auth113 starsApache-2.017 out of 100
#109geekyants/express-typescriptExpress and TypeScript API boilerplate with MongoDB, Passport and JWT1.3k starsMIT14 out of 100