Code Monkey home page Code Monkey logo

ggb's Introduction

Go Gin Boilerplate

🎬 Introduction

A development boilerplate based on the Gin framework, aimed at helping developers quickly build and develop web applications.

👀 Keywords

Go Gin Cobra Viper Gorm Gin-Swagger Air Logrus Lumberjack Zap Jwt

✨ Features

  • Fast Development: Using the Gin framework and related tools to speed up the development and iteration process of the project..
  • Easy to use: Follow the project-layout specification and provide a clear and simple code structure so that even beginners can easily get started.
  • Advanced CLI: Using Cobra to build modern command line tools to simplify project management and operations.
  • Hot Reload: Using Air tool, support hot reload, improve development efficiency.
  • Logging system: Integrated Logrus, Zap and Lumberjack to achieve all-round log recording and management.
  • Database Support: Integrated Gorm, support mainstream databases such as MySQL, PostgreSQL, etc.
  • Flexible Middleware: Integrate common middleware to easily implement functions such as logging, authentication, cross-domain, and flow control.
  • API Document: Use Gin-Swagger to generate API documents for easy viewing and debugging of interfaces.

🚀 Quick Start

git clone https://github.com/sanjayheaven/ggb.git
cd ggb
go mod download

Configuration Setup

  • Navigate to the configs directory, copy the config.example.yaml file, and rename it to config.yaml.
cp configs/config.example.yaml configs/config.yaml
  • Modify the configuration items in the config.yaml file.
vi configs/config.yaml

Run the Application

  • Run the project using air 【Recommended】
air
  • Run the project using go run
go run main.go server

🔨 Build

make build

🪤 Deployment

docker-compose

Deploy the application using docker-compose. Ensure that Docker is installed on the server, and you are familiar with the usage of docker compose.

  • Copy the deployments/docker-compose.yml configuration file to the project root directory.
  • Execute the following command to start the application
docker compose up -d

🤝 Support

  • Star 🌟 the project

  • Welcome to submit issue. Thank you for your support

  • Help promote it on social media and recommend it to friends

    Twitter Facebook WhatsApp Telegram

  • You can also sponsor a cup of coffee on Ko-Fi or Buy Me A Coffee

    Buy Me a Coffee at ko-fi.com Buy Me A Coffee

ggb's People

Contributors

sanjayheaven avatar

Stargazers

Dan Sikes avatar  avatar troubadour avatar  avatar chiefass avatar xiaoruiguo avatar ENIACCC avatar  avatar Jian avatar stylite1024 avatar yanqi avatar  avatar LinYi avatar sunkai avatar  avatar DanL0 avatar spele avatar lDevin avatar Kevins avatar  avatar Wind avatar Jerry LI avatar Liam Johnson avatar MeiCXi avatar SamgeShao avatar  avatar  avatar  avatar 孙娇女 avatar Tigger avatar  avatar helloworld avatar happy new year avatar bobo_cat avatar jfaWei avatar 嘿嘿 avatar  avatar mike avatar 李子凡 avatar jxcheng avatar Meta Luo avatar  avatar kiritoxkiriko avatar  avatar  avatar su7-gaga avatar Immortal avatar  avatar Jae Hauck avatar  avatar  avatar Zresnso avatar  avatar misster chen avatar  avatar  avatar piperhu avatar john river avatar 官方小傲娇 avatar mask avatar kkk avatar mitas avatar gitbrody avatar  avatar ruhai avatar Jerry Ma avatar  avatar bryce avatar chensimian avatar  avatar Tim avatar  avatar amgg avatar  avatar 8xmx8 avatar SongZihui avatar Molly Lau avatar  avatar  avatar 王猛 avatar  avatar Sohel Mia avatar  avatar  avatar  avatar Zezhong Li avatar Jake Smith avatar 开源GIT avatar Tuan avatar  avatar zwq avatar 厦门飞骥科技有限公司 avatar  avatar XH_YY avatar ouhuanyu avatar York Han avatar Lex avatar wjp avatar  avatar 大一学生 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.