#3636th of 45 in Backend and cloud templates

golang-gin-realworld-example-app

Go/Gin REST backend implementing the RealWorld Conduit API with SQLite

Stars
2.7k
License
MIT
Last commit
Nov 2026
Language
Go
Stars, last 29 weeks+66
21 Apr 2026: 2,658 stars28 Apr 2026: 2,659 stars5 May 2026: 2,661 stars12 May 2026: 2,664 stars19 May 2026: 2,669 stars26 May 2026: 2,671 stars2 Jun 2026: 2,675 stars9 Jun 2026: 2,678 stars16 Jun 2026: 2,680 stars23 Jun 2026: 2,683 stars30 Jun 2026: 2,683 stars7 Jul 2026: 2,685 stars14 Jul 2026: 2,689 stars21 Jul 2026: 2,691 stars28 Jul 2026: 2,693 stars4 Aug 2026: 2,696 stars11 Aug 2026: 2,697 stars18 Aug 2026: 2,700 stars25 Aug 2026: 2,705 stars1 Sept 2026: 2,707 stars8 Sept 2026: 2,708 stars15 Sept 2026: 2,708 stars22 Sept 2026: 2,710 stars29 Sept 2026: 2,711 stars6 Oct 2026: 2,712 stars13 Oct 2026: 2,715 stars20 Oct 2026: 2,716 stars27 Oct 2026: 2,717 stars3 Nov 2026: 2,718 stars10 Nov 2026: 2,724 stars

2,658 on 21 Apr 20262,724 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

A Go backend built on Gin and GORM v2 that implements the RealWorld (Conduit) API: users, JWT auth, profiles, articles, comments, favorites and pagination. Data is stored in SQLite and the app starts with `go run hello.go` on port 8080 by default. It passes the RealWorld Hurl and Bruno spec suites and reports about 90% test coverage.

Who it is for: Go developers wanting a reference REST API with auth, CRUD and tests

Strengths

  • Passes the RealWorld Hurl and Bruno API spec suites, run in CI
  • Reported test coverage around 90% (articles, users, common packages)
  • Small layout: per-domain models, serializers, routers, middlewares, validators
  • Uses current libraries: GORM v2, golang-jwt v5, validator v10

Weaknesses

  • No AI or model functionality; it is a plain CRUD API example
  • SQLite only; the sqlite driver requires cgo
  • No Dockerfile or compose file provided
  • Todo list still open: ProtoBuf support, config cleanup, interfaces

What it needs

  • Go
  • Needs Go 1.21+, SQLite (cgo)
  • env example file

Quick answers

Is golang-gin-realworld-example-app open source?

Yes. Its code is on GitHub under the MIT license.

Also in Backend and cloud templates

See all 45
Also in Backend and cloud templates
RankProjectScore
1fastapiPython web framework for typed REST APIs with automatic OpenAPI docs104.6k starsMIT90 out of 100
2fiberExpress-style HTTP web framework for Go, built on fasthttp40.3k stars+130 (+0.3%) in 30 daysMIT90 out of 100
3generator-jhipsterCode generator for Java apps with Angular, React or Vue frontends22.5k starsApache-2.090 out of 100
#4serverlessCLI that deploys AWS Lambda code and infrastructure from serverless.yml46.9k starscustom license88 out of 100
#5echoMinimalist Go web framework with a radix-tree router and middleware32.8k stars+73 (+0.2%) in 30 daysMIT86 out of 100