G
go-backend-clean-architecture
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
- 01Go backend based on Clean Architecture
- 02Gin framework
- 03MongoDB integration
- 04JWT authentication
- 05Docker support
Use cases
- 01Starting a Go backend project
- 02Building an API with Gin and MongoDB
- 03Setting up JWT-based authentication
- 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-architectureAfter installing, type/go-backend-clean-architecturein Claude Code to confirm it loaded.
Details
From the project READMEGo 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