# eddycjy/go-gin-example

An example of gin

Repository: https://github.com/eddycjy/go-gin-example
Canonical: https://ross.abutalabs.com/products/go-gin-example
Language: Go
License: MIT
License Family: permissive
Topics: golang, gin, jwt, swagger, gorm, endless, api, go
Last push: 2026-03-13T02:50:02+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 72, release rhythm 35, longevity 100
- inputs: {"age_days": 3120, "days_push": 173, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7196, forks 1620 (observed 2026-08-28T04:09:56.562369+00:00)

## What it is
A well-known example repository demonstrating a production-style RESTful blog API built with Go's Gin framework, GORM, MySQL, Redis, and JWT authentication. It serves as a reference/tutorial project showing real-world project structure, middleware, Swagger docs, and common backend patterns.

## Use cases
- learn how to structure a Go Gin web project
- example of JWT authentication middleware in Gin
- reference for GORM with MySQL in a REST API
- how to add Swagger docs to a Gin API
- learn Go backend best practices with a blog API example
- example of file upload and Excel export in Go
- starting point for building a RESTful API in Go

## When to choose
- you are learning Go web development with Gin and want a complete, idiomatic example
- you need a reference architecture for a small-to-medium REST API in Go
- you want to see how JWT, GORM, Redis, and Swagger fit together in one project

## When to avoid
- you need a maintained production framework rather than an educational example
- you use a different stack (e.g., Python, Node.js) or a different Go framework
- you need cutting-edge Go practices, as some dependencies (e.g., jwt-go, old GORM) are dated

## Facets
- artifact type: learning-resource
- maturity: stable
- function: web-framework, orm, auth, api-framework, middleware, http-server
- domain: web-development, backend, developer-tools, tutorials, apis
- platform: go, cross-platform
- tags: gin, example-project, rest-api, jwt, swagger, gorm, blog-api, boilerplate, tutorial, web-server

## Member repositories
- eddycjy/go-gin-example (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:56.562369+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:39:52.670396+00:00, confidence not recorded.
  - readme: https://github.com/eddycjy/go-gin-example (fetched 2026-08-28T04:09:56.562369+00:00, sha c060fc4bd6ad)
- Data as of 2026-08-30T08:39:29.467469+00:00.
