Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/goadmingroup/example_with_frontend

example with frontend template
https://github.com/goadmingroup/example_with_frontend

Last synced: about 1 month ago
JSON representation

example with frontend template

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)