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

dependabot[bot] e8a1383fca Bump github.com/gin-gonic/gin from 1.5.0 to 1.9.0 3 éve
deploy 6ba761e545 update example 6 éve
html a852c79960 update example 6 éve
logs 01707f2b48 update example 6 éve
models 45acbf882e update orm 6 éve
pages 997301a05a update to v1.2.16 5 éve
tables 9e80d38baf update to v1.2.15 5 éve
uploads 681488eebc update example 6 éve
.gitignore 4517fa1936 release v1.2.20 5 éve
Dockerfile 2001ab86b4 add dockerfile 6 éve
Makefile 05f370829f docs(readme): update readme 6 éve
README.md 76182b483b docs(readme): update readme 6 éve
README_CN.md 3a15d9b202 release v1.2.23 5 éve
adm_config.ini 05f370829f docs(readme): update readme 6 éve
admin.db afb34bb5ae update to v1.2.15 5 éve
bootstrap.go ab31cd42e4 update to v1.2.15 5 éve
config.json 002e1d55a1 update to v1.2.15 5 éve
go.mod e8a1383fca Bump github.com/gin-gonic/gin from 1.5.0 to 1.9.0 3 éve
go.sum e8a1383fca Bump github.com/gin-gonic/gin from 1.5.0 to 1.9.0 3 éve
main.go 9ebef204a7 update 6 éve
main_test.go 9e80d38baf update to v1.2.15 5 éve

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