legends-killer / gin-template-new

๐Ÿ˜ŽโœŒ๏ธA gin template with some useful thing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gin-Template

What in it

  • gin
  • gorm and mysql
  • cors
  • tencent cms
  • oss
  • mail
  • viper
  • log
  • docker
  • snow Flake
  • jwt auth

How to use

  • Globally replace the package name with your own repository
  • Edit config/vars GlobalConfig. It is recommended to make changes on the existing basis. Try not to change the existing structure, if you change, you need to change part of the code synchronously
  • Exec go build cmd/main.go and run, config.json will generate under config/
  • Complete the config
  • If you deploy with docker engine, edit docker-copmose.yml, Especially port mappings and service names

About

๐Ÿ˜ŽโœŒ๏ธA gin template with some useful thing.


Languages

Language:Go 96.7%Language:Dockerfile 3.3%