https://github.com/goadmingroup/example
A simple example show how to quickly run GoAdmin
https://github.com/goadmingroup/example
Last synced: 11 months ago
JSON representation
A simple example show how to quickly run GoAdmin
- Host: GitHub
- URL: https://github.com/goadmingroup/example
- Owner: GoAdminGroup
- Created: 2019-09-24T12:30:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T07:01:38.000Z (almost 2 years ago)
- Last Synced: 2025-04-02T06:09:18.725Z (11 months ago)
- Language: Go
- Homepage:
- Size: 494 KB
- Stars: 203
- Watchers: 11
- Forks: 59
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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 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)