LyricTian / gin-admin

A lightweight, flexible, elegant and full-featured RBAC scaffolding based on GIN + GORM 2.0 + Casbin 2.0 + Wire DI.
http://101.42.232.163:8040
Apache License 2.0
2.57k stars 518 forks source link

windows怎么启动?启动不了 #44

Open Niofh opened 5 years ago

LyricTian commented 5 years ago

windows下没有make命令,可以选择安装mingw64软件包:链接:https://share.weiyun.com/5TR4VTx,然后将mingw64/bin目录放入PATH,执行:

mingw32-make start

也可以使用go命令直接运行:

cd gin-admin/cmd/server
go build -o server
./server -c ../../configs/config.toml -m ../../configs/model.conf -swagger ../../internal/app/swagger
zinwalin commented 4 years ago

windows下没有make命令,可以选择安装mingw64软件包:链接:https://share.weiyun.com/5TR4VTx,然后将mingw64/bin目录放入PATH,执行

mingw32-make start

也可以使用go命令直接运行:

cd gin-admin/cmd/server
go build -o server
./server -c ../../configs/config.toml -m ../../configs/model.conf -swagger ../../internal/app/swagger

哪来的 cd gin-admin/cmd/server 目录?

LyricTian commented 4 years ago

入口文件为:cmd/server/main.go,可以执行命令:

go run cmd/server/main.go -c ./configs/config.toml -m ./configs/model.conf -swagger ./internal/app/swagger