GitHub - purpose168/GoAdmin-example: 一个汉化的GoAdmin示例展示 · GitHub
Skip to content

purpose168/GoAdmin-example

 
 

Repository files navigation

GoAdmin 示例

这是一个展示如何运行 go-admin 的示例。

以下是运行代码的三种方式。

如果您是 Windows 用户,go-sqlite-driver 需要下载 gcc 才能正常工作。

使用 Go 模块

要使用 Go 模块,您应该先设置 GO111MODULE=on。

步骤 1

git clone https://github.com/purpose168/GoAdmin-example.git

步骤 2

cd example
GO111MODULE=on go run .

访问: http://localhost:9033/admin

使用 Docker

步骤 1

git clone https://github.com/purpose168/GoAdmin-example.git

步骤 2

cd example
docker build -t go-admin-example .

步骤 3

docker attach $(docker run -p 9033:9033 -it -d go-admin-example /bin/bash -c "cd /go/src/app && GOPROXY=http://goproxy.cn GO111MODULE=on go run .")

访问: http://localhost:9033/admin

About

一个汉化的GoAdmin示例展示

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • Go 96.6%
  • Makefile 2.8%
  • Other 0.6%