|
|
пре 3 година | |
|---|---|---|
| deploy | пре 6 година | |
| html | пре 6 година | |
| logs | пре 6 година | |
| models | пре 6 година | |
| pages | пре 5 година | |
| tables | пре 5 година | |
| uploads | пре 6 година | |
| .gitignore | пре 5 година | |
| Dockerfile | пре 6 година | |
| Makefile | пре 6 година | |
| README.md | пре 6 година | |
| README_CN.md | пре 5 година | |
| adm_config.ini | пре 6 година | |
| admin.db | пре 5 година | |
| bootstrap.go | пре 5 година | |
| config.json | пре 5 година | |
| go.mod | пре 3 година | |
| go.sum | пре 3 година | |
| main.go | пре 6 година | |
| main_test.go | пре 5 година |
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.
To use go module, you should set GO111MODULE=on first.
git clone https://github.com/GoAdminGroup/example.git
cd example
GO111MODULE=on go run .
visit: http://localhost:9033/admin
To use go path, you should set GO111MODULE=off first.
git clone https://github.com/GoAdminGroup/example.git
go get github.com/kardianos/govendor
cd example
govendor sync
go run .
visit: http://localhost:9033/admin
git clone https://github.com/GoAdminGroup/example.git
cd example
docker build -t go-admin-example .
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