Aucune description

Yi 673700b0b4 immunization: 免疫计划 il y a 7 mois
cmd 25c3f1072e dept: 部门管理 il y a 1 an
config 6dee0d6c45 pasture: 牧场管理-栏舍管理模块 il y a 11 mois
dep cc1205904d kpt-pasture: init il y a 1 an
http 673700b0b4 immunization: 免疫计划 il y a 7 mois
migrator 47b4319e6e pasture: 牧场管理-繁殖状态模块 il y a 11 mois
model 673700b0b4 immunization: 免疫计划 il y a 7 mois
module 673700b0b4 immunization: 免疫计划 il y a 7 mois
service cc1205904d kpt-pasture: init il y a 1 an
store 25c3f1072e dept: 部门管理 il y a 1 an
test cc1205904d kpt-pasture: init il y a 1 an
util 25c3f1072e dept: 部门管理 il y a 1 an
.drone.yml cc1205904d kpt-pasture: init il y a 1 an
.gitignore a8bde4e018 framework: 框架初始化 il y a 1 an
Dockerfile 81e4069312 event(calving): 产犊事件新增 il y a 10 mois
Makefile cc1205904d kpt-pasture: init il y a 1 an
README.md cc1205904d kpt-pasture: init il y a 1 an
go.mod 673700b0b4 immunization: 免疫计划 il y a 7 mois
go.sum 673700b0b4 immunization: 免疫计划 il y a 7 mois
main.go cc1205904d kpt-pasture: init il y a 1 an

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