1 Star 0 Fork 195

Sunshine/gin-admin

forked from Lyric/gin-admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 802 Bytes
一键复制 编辑 原始数据 按行查看 历史
linzhengen 提交于 2020-06-15 15:12 . fix auth pkg degraded
.PHONY: start build
NOW = $(shell date -u '+%Y%m%d%I%M%S')
APP = gin-admin
SERVER_BIN = ./cmd/${APP}/${APP}
RELEASE_ROOT = release
RELEASE_SERVER = release/${APP}
all: start
build:
@go build -ldflags "-w -s" -o $(SERVER_BIN) ./cmd/${APP}
start:
go run cmd/${APP}/main.go web -c ./configs/config.toml -m ./configs/model.conf --menu ./configs/menu.yaml
swagger:
swag init --generalInfo ./internal/app/swagger.go --output ./internal/app/swagger
wire:
wire gen ./internal/app/injector
test:
@go test -v $(shell go list ./...)
clean:
rm -rf data release $(SERVER_BIN) ./internal/app/test/data ./cmd/${APP}/data
pack: build
rm -rf $(RELEASE_ROOT) && mkdir -p $(RELEASE_SERVER)
cp -r $(SERVER_BIN) configs $(RELEASE_SERVER)
cd $(RELEASE_ROOT) && tar -cvf $(APP).tar ${APP} && rm -rf ${APP}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/why777/gin-admin.git
git@gitee.com:why777/gin-admin.git
why777
gin-admin
gin-admin
master

搜索帮助