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

cg33 002e1d55a1 update to v1.2.15 před 5 roky
deploy 6ba761e545 update example před 6 roky
html a852c79960 update example před 6 roky
logs 01707f2b48 update example před 6 roky
models 45acbf882e update orm před 6 roky
pages 20a3054cd8 update před 6 roky
plugins 20a3054cd8 update před 6 roky
tables 0a435adc2e update to v1.2.12 před 6 roky
uploads 681488eebc update example před 6 roky
vendor 002e1d55a1 update to v1.2.15 před 5 roky
.gitignore 01707f2b48 update example před 6 roky
Dockerfile 2001ab86b4 add dockerfile před 6 roky
Makefile 05f370829f docs(readme): update readme před 6 roky
README.md 76182b483b docs(readme): update readme před 6 roky
README_CN.md 002e1d55a1 update to v1.2.15 před 5 roky
adm_config.ini 05f370829f docs(readme): update readme před 6 roky
admin.db 83bf17d976 update to v1.2.12 před 6 roky
bootstrap.go 002e1d55a1 update to v1.2.15 před 5 roky
config.json 002e1d55a1 update to v1.2.15 před 5 roky
go.mod 002e1d55a1 update to v1.2.15 před 5 roky
go.sum 002e1d55a1 update to v1.2.15 před 5 roky
main.go 9ebef204a7 update před 6 roky
main_test.go 82238d92e2 update to v1.2.11 před 6 roky

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