pableeee / example

A simple example show how to quickly run GoAdmin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoAdmin Example

中文说明

A example show how to run go-admin. Just for reference, here to know more.

Following three ways to run the code.

If you are Windows user, go-sqlite-dirver require to download the gcc to make it work.

use go module

To use go module, you should set GO111MODULE=on first.

step 1

git clone https://github.com/GoAdminGroup/example.git

step 2

cd example
GO111MODULE=on go run .

visit: http://localhost:9033/admin

use gopath

To use go path, you should set GO111MODULE=off first.

step 1

git clone https://github.com/GoAdminGroup/example.git

step 2

go get github.com/kardianos/govendor
cd example
govendor sync

step 3

go run .

visit: http://localhost:9033/admin

use docker

step 1

git clone https://github.com/GoAdminGroup/example.git

step 2

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

step 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 .")

visit: http://localhost:9033/admin

About

A simple example show how to quickly run GoAdmin


Languages

Language:Go 98.3%Language:Makefile 1.6%Language:Dockerfile 0.1%