|
|
2 年之前 | |
|---|---|---|
| deploy | 6 年之前 | |
| html | 6 年之前 | |
| logs | 6 年之前 | |
| models | 6 年之前 | |
| pages | 2 年之前 | |
| tables | 2 年之前 | |
| uploads | 6 年之前 | |
| .gitignore | 5 年之前 | |
| Dockerfile | 6 年之前 | |
| Makefile | 6 年之前 | |
| README.md | 2 年之前 | |
| README_CN.md | 2 年之前 | |
| adm_config.ini | 6 年之前 | |
| admin.db | 2 年之前 | |
| bootstrap.go | 5 年之前 | |
| config.yml | 2 年之前 | |
| go.mod | 2 年之前 | |
| go.sum | 2 年之前 | |
| main.go | 2 年之前 | |
| main_test.go | 5 年之前 | |
| project.db | 2 年之前 |
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
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