# example **Repository Path**: airJordan9/example ## Basic Information - **Project Name**: example - **Description**: go admin example - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 6 - **Created**: 2020-01-06 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GoAdmin Example [中文说明](./README_CN.md) A example show how to run go-admin. Just for reference, [here](http://www.go-admin.cn/en) to know more. Following three ways to run the code. If you are Windows user, [go-sqlite-dirver](https://github.com/mattn/go-sqlite3) require to download the gcc to make it work. ## use go module To use go module, you should set GO111MODULE=on first. ### step 1 ```shell git clone https://github.com/GoAdminGroup/example.git ``` ### step 2 ```shell cd example GO111MODULE=on go run . ``` visit: [http://localhost:9033/admin](http://localhost:9033/admin) ## use gopath To use go path, you should set GO111MODULE=off first. ### step 1 ```shell git clone https://github.com/GoAdminGroup/example.git ``` ### step 2 ```shell go get github.com/kardianos/govendor cd example govendor sync ``` ### step 3 ```shell go run . ``` visit: [http://localhost:9033/admin](http://localhost:9033/admin) ## use docker ### step 1 ```shell git clone https://github.com/GoAdminGroup/example.git ``` ### step 2 ```shell cd example docker build -t go-admin-example . ``` ### step 3 ```shell 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](http://localhost:9033/admin)