Gin-Template
What in it
- gin
- gorm and mysql
- cors
- tencent cms
- oss
- 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 underconfig/
- Complete the config
- If you deploy with docker engine, edit
docker-copmose.yml
, Especially port mappings and service names