README.md 538 Bytes
Newer Older
彭芳 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# Project Template

## Generate other auxiliary files by Makefile
```
# Download and update dependencies
make init
# Generate all files
make all
```
## Automated Initialization (wire)
```
# install wire
go get github.com/google/wire/cmd/wire

# generate wire
cd cmd/server
wire
```

彭芳 committed
20 21 22 23 24 25
## Local run
```
# Generate all files, build and run
make run
```

彭芳 committed
26
## Local Run with Docker
彭芳 committed
27 28 29 30 31 32 33 34
```bash
# build
docker build -t <your-docker-image-name> .

# run
docker run --rm -p 8000:8000 -v </path/to/your/configs>:/data/conf <your-docker-image-name>
```