mcpField
G
go-backend-clean-architecture

go-backend-clean-architecture

github.com/rebyteai-templateDevelopment17100 installsUpdated 19w ago
Repository

About go-backend-clean-architecture

go-backend-clean-architecture is a Go backend starter built with Gin and MongoDB, using Clean Architecture and JWT authentication. It includes Docker support for developers setting up a backend project.

Key features

  1. 01Go backend based on Clean Architecture
  2. 02Gin framework
  3. 03MongoDB integration
  4. 04JWT authentication
  5. 05Docker support

Use cases

  1. 01Starting a Go backend project
  2. 02Building an API with Gin and MongoDB
  3. 03Setting up JWT-based authentication
  4. 04Running the project with Docker

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/rebyteai-template/rebyte-skills --skill go-backend-clean-architecture

After installing, type/go-backend-clean-architecturein Claude Code to confirm it loaded.

Details

From the project README

Go Clean Architecture

A Go backend with Gin, MongoDB, JWT authentication, and Docker support following Clean Architecture principles.

Tech Stack

  • Framework: Gin
  • Language: Go
  • Database: MongoDB
  • Auth: JWT
  • Architecture: Clean Architecture

Prerequisites

  • Go 1.21+
  • MongoDB
  • Docker (optional)

Setup

1. Clone the Template
git clone --depth 1 https://github.com/amitshekhariitbhu/go-backend-clean-architecture.git .

If the directory is not empty:

git clone --depth 1 https://github.com/amitshekhariitbhu/go-backend-clean-architecture.git _temp_template
mv _temp_template/* _temp_template/.* . 2>/dev/null || true
rm -rf _temp_template
2. Remove Git History (Optional)
rm -rf .git
git init
3. Install Dependencies
go mod download
4. Setup Environment

Configure MongoDB connection and JWT secret.

Build

go build -o app ./cmd/main.go

Development

go run ./cmd/main.go

Comments

Markdown supported