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

chenhg5 956d61425a update to latest %!s(int64=2) %!d(string=hai) anos
deploy 6ba761e545 update example %!s(int64=6) %!d(string=hai) anos
html a852c79960 update example %!s(int64=6) %!d(string=hai) anos
logs 01707f2b48 update example %!s(int64=6) %!d(string=hai) anos
models 45acbf882e update orm %!s(int64=6) %!d(string=hai) anos
pages 52ec9eaf1b update version %!s(int64=2) %!d(string=hai) anos
tables 956d61425a update to latest %!s(int64=2) %!d(string=hai) anos
uploads 681488eebc update example %!s(int64=6) %!d(string=hai) anos
.gitignore 4517fa1936 release v1.2.20 %!s(int64=5) %!d(string=hai) anos
Dockerfile 2001ab86b4 add dockerfile %!s(int64=6) %!d(string=hai) anos
Makefile 05f370829f docs(readme): update readme %!s(int64=6) %!d(string=hai) anos
README.md 52ec9eaf1b update version %!s(int64=2) %!d(string=hai) anos
README_CN.md 52ec9eaf1b update version %!s(int64=2) %!d(string=hai) anos
adm_config.ini 05f370829f docs(readme): update readme %!s(int64=6) %!d(string=hai) anos
admin.db 956d61425a update to latest %!s(int64=2) %!d(string=hai) anos
bootstrap.go ab31cd42e4 update to v1.2.15 %!s(int64=5) %!d(string=hai) anos
config.yml 956d61425a update to latest %!s(int64=2) %!d(string=hai) anos
go.mod 52ec9eaf1b update version %!s(int64=2) %!d(string=hai) anos
go.sum 52ec9eaf1b update version %!s(int64=2) %!d(string=hai) anos
main.go 956d61425a update to latest %!s(int64=2) %!d(string=hai) anos
main_test.go 9e80d38baf update to v1.2.15 %!s(int64=5) %!d(string=hai) anos
project.db 956d61425a update to latest %!s(int64=2) %!d(string=hai) anos

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 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