https://github.com/truongbo17/go-gin-boilerplate
Golang base project using Gin framework
https://github.com/truongbo17/go-gin-boilerplate
gin gin-boilerplate gin-go gin-gonic go-boilerplate go-project go-swagger golang gorm
Last synced: 6 days ago
JSON representation
Golang base project using Gin framework
- Host: GitHub
- URL: https://github.com/truongbo17/go-gin-boilerplate
- Owner: truongbo17
- License: mit
- Created: 2025-01-13T10:14:35.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-23T11:58:48.000Z (9 months ago)
- Last Synced: 2025-01-23T12:29:47.523Z (9 months ago)
- Topics: gin, gin-boilerplate, gin-go, gin-gonic, go-boilerplate, go-project, go-swagger, golang, gorm
- Language: Go
- Homepage:
- Size: 255 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Gin Base
![]()
A development boilerplate based on the Gin framework, quickly build and develop web applications.
----
## Document
- Golang: https://go.dev
- Gin framework: https://gin-gonic.com----
## Introduction
So why I use choose Gin framework?
- Based on benchmarks: https://gin-gonic.com/docs/benchmarks/
- Gin doesn't build everything from scratch, but relies heavily on Go's standard net/http (also one reason why i don't
use fiber, even though fiber has better stats).
- Big community, really the biggest. With twice the stars and contributors of the second place competitor.
- Suitable for building RESTFul API, microservices or realtime applications.
- There is a full tutorial to build up a web server, even in Go Dev official blog!----
## Installation
### Setup
```shell
git clone https://github.com/truongbo17/go-base.git
go mod download
``````shell
cp .env.example .env
``````shell
go run main.go migrate
``````shell
go clean -cache
```### Run the Application
Run with air(hot reload):
```shell
go install github.com/air-verse/air@latest
``````shell
air server
```Or simple:
```shell
go run main.go server
```Docs
```shell
go install github.com/swaggo/swag/cmd/swag@latest
``````text
{{host}}/docs/swagger/index.html
```Build
```shell
make build
```----
## Feature
* Config ✅
* Command / Console ✅
* Schedule / Cron ✅
* Queue/Job ✅
* Swagger ✅
* Logger ✅
* Database (DocumentDB(MongoDB), Relation DB(MYSQL)) ✅
* Authentication (JWT access token, refresh token) ✅
* Google auth ✅
* Cache (local, redis) ✅
* Redis ✅
* Http call service ✅
* Middleware ✅
* Push notify to telegram ✅
* Migration tool ✅
* File upload (local, s3)
* Kafka (producer, consumer)
* GraphQL
* I18N
* ...
----## Overview
----
## Struct