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

cg33 05f370829f docs(readme): update readme преди 6 години
deploy 6ba761e545 update example преди 6 години
html a852c79960 update example преди 6 години
logs 01707f2b48 update example преди 6 години
models 6ba761e545 update example преди 6 години
pages e232c4bb34 update to v1.2.11 преди 6 години
tables 96a0e03ca3 update to v1.2.11 преди 6 години
uploads 681488eebc update example преди 6 години
vendor 21c6d328d7 update to v1.2.11 преди 6 години
.gitignore 01707f2b48 update example преди 6 години
Dockerfile 2001ab86b4 add dockerfile преди 6 години
Makefile 05f370829f docs(readme): update readme преди 6 години
README.md 76182b483b docs(readme): update readme преди 6 години
README_CN.md 21c6d328d7 update to v1.2.11 преди 6 години
adm_config.ini 05f370829f docs(readme): update readme преди 6 години
admin.db 96a0e03ca3 update to v1.2.11 преди 6 години
config.json 6ba761e545 update example преди 6 години
go.mod 21c6d328d7 update to v1.2.11 преди 6 години
go.sum 21c6d328d7 update to v1.2.11 преди 6 години
main.go 2f0fee507a update to v1.2.11 преди 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