tmr 集团版本

Yi c24c82dc3b project: init 1 rok temu
cmd c24c82dc3b project: init 1 rok temu
config c24c82dc3b project: init 1 rok temu
dep c24c82dc3b project: init 1 rok temu
http c24c82dc3b project: init 1 rok temu
model c24c82dc3b project: init 1 rok temu
util c24c82dc3b project: init 1 rok temu
.drone.yml c24c82dc3b project: init 1 rok temu
.gitignore c24c82dc3b project: init 1 rok temu
README.md c24c82dc3b project: init 1 rok temu
go.mod c24c82dc3b project: init 1 rok temu
go.sum c24c82dc3b project: init 1 rok temu
main.go c24c82dc3b project: init 1 rok temu

README.md

kpt-tmr-group

kpt-tmr-group - 科湃腾TMR集团版

Requirements

  • Go >= 1.17
  • MySQL >= 5.7
  • Docker CE >= 19.03
  • Docker compose

Develops

本地开始开发前,请先阅读 README 和 Makefile,标准使用流程:

需要设置的环境变量:

  • export APP_ENVIRONMENT=test

然后你可以尝试编译:

  • make build

本地测试:

  • make test

lint: 在开发完后请记得跑下make lint做代码检查(🤔: 你可能会有疑问,为啥不配置JOB跑呢?--> 因为golangci-lint跑本项目需要6G+的内存,会触发OOM😂)

需要更新 gomock:

  • 生成 mock 前,请确保你能够编译 & 编译完成
  • make generate