Brak opisu

Yi 6dee0d6c45 pasture: 牧场管理-栏舍管理模块 11 miesięcy temu
cmd 25c3f1072e dept: 部门管理 1 rok temu
config 6dee0d6c45 pasture: 牧场管理-栏舍管理模块 11 miesięcy temu
dep cc1205904d kpt-pasture: init 1 rok temu
http 6dee0d6c45 pasture: 牧场管理-栏舍管理模块 11 miesięcy temu
migrator 25c3f1072e dept: 部门管理 1 rok temu
model 6dee0d6c45 pasture: 牧场管理-栏舍管理模块 11 miesięcy temu
module 6dee0d6c45 pasture: 牧场管理-栏舍管理模块 11 miesięcy temu
service cc1205904d kpt-pasture: init 1 rok temu
store 25c3f1072e dept: 部门管理 1 rok temu
test cc1205904d kpt-pasture: init 1 rok temu
util 25c3f1072e dept: 部门管理 1 rok temu
.drone.yml cc1205904d kpt-pasture: init 1 rok temu
.gitignore a8bde4e018 framework: 框架初始化 1 rok temu
Dockerfile cc1205904d kpt-pasture: init 1 rok temu
Makefile cc1205904d kpt-pasture: init 1 rok temu
README.md cc1205904d kpt-pasture: init 1 rok temu
go.mod 6dee0d6c45 pasture: 牧场管理-栏舍管理模块 11 miesięcy temu
go.sum 6dee0d6c45 pasture: 牧场管理-栏舍管理模块 11 miesięcy temu
main.go cc1205904d kpt-pasture: init 1 rok temu

README.md

kpt-pasture

kpt-pasture- 科湃腾牧场管理系统

Requirements

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

Develops

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

需要设置的环境变量:

  • export APP_ENVIRONMENT=test
  • export PASTURE_WORK_DIR=D:\project\golangNew\kpt-pasture

然后你可以尝试编译:

  • make build

本地测试:

  • make test

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

需要更新 go-mock:

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