Aucune description

ping 6920b0b783 token: http token 调试 il y a 11 mois
cmd 25c3f1072e dept: 部门管理 il y a 1 an
config 6920b0b783 token: http token 调试 il y a 11 mois
dep cc1205904d kpt-pasture: init il y a 1 an
http 6920b0b783 token: http token 调试 il y a 11 mois
migrator 25c3f1072e dept: 部门管理 il y a 1 an
model d28242c10e config: 修改测试环境的数据库配置 il y a 11 mois
module ef284520fe system: menu il y a 11 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 cc1205904d kpt-pasture: init il y a 1 an
Makefile cc1205904d kpt-pasture: init il y a 1 an
README.md cc1205904d kpt-pasture: init il y a 1 an
go.mod ef284520fe system: menu il y a 11 mois
go.sum 6920b0b783 token: http token 调试 il y a 11 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