Nenhuma descrição

ping 6920b0b783 token: http token 调试 11 meses atrás
cmd 25c3f1072e dept: 部门管理 1 ano atrás
config 6920b0b783 token: http token 调试 11 meses atrás
dep cc1205904d kpt-pasture: init 1 ano atrás
http 6920b0b783 token: http token 调试 11 meses atrás
migrator 25c3f1072e dept: 部门管理 1 ano atrás
model d28242c10e config: 修改测试环境的数据库配置 11 meses atrás
module ef284520fe system: menu 11 meses atrás
service cc1205904d kpt-pasture: init 1 ano atrás
store 25c3f1072e dept: 部门管理 1 ano atrás
test cc1205904d kpt-pasture: init 1 ano atrás
util 25c3f1072e dept: 部门管理 1 ano atrás
.drone.yml cc1205904d kpt-pasture: init 1 ano atrás
.gitignore a8bde4e018 framework: 框架初始化 1 ano atrás
Dockerfile cc1205904d kpt-pasture: init 1 ano atrás
Makefile cc1205904d kpt-pasture: init 1 ano atrás
README.md cc1205904d kpt-pasture: init 1 ano atrás
go.mod ef284520fe system: menu 11 meses atrás
go.sum 6920b0b783 token: http token 调试 11 meses atrás
main.go cc1205904d kpt-pasture: init 1 ano atrás

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