基于golang快速搭建后台管理中心

cg33 95c723fc4b update to v1.2.9 6 سال پیش
deploy 6ba761e545 update example 6 سال پیش
html a852c79960 update example 6 سال پیش
logs 01707f2b48 update example 6 سال پیش
models 6ba761e545 update example 6 سال پیش
pages 831cb544a2 update to v1.2.9 6 سال پیش
tables a852c79960 update example 6 سال پیش
uploads 681488eebc update example 6 سال پیش
vendor 831cb544a2 update to v1.2.9 6 سال پیش
.gitignore 01707f2b48 update example 6 سال پیش
Dockerfile 2001ab86b4 add dockerfile 6 سال پیش
Makefile 160c5c8309 update example 6 سال پیش
README.md a1bc67e4d3 update to v1.2.9 6 سال پیش
README_CN.md 95c723fc4b update to v1.2.9 6 سال پیش
adm_config.ini 160c5c8309 update example 6 سال پیش
admin.db 6ba761e545 update example 6 سال پیش
config.json 6ba761e545 update example 6 سال پیش
go.mod 831cb544a2 update to v1.2.9 6 سال پیش
go.sum 831cb544a2 update to v1.2.9 6 سال پیش
main.go 6ba761e545 update example 6 سال پیش
main_test.go 160c5c8309 update example 6 سال پیش

README.md

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