2020-09-20 03:55:46 +00:00
|
|
|
# goserv
|
|
|
|
|
|
|
|
> Boilerplate for how I like to write a backend web service
|
2020-09-28 07:26:16 +00:00
|
|
|
|
2020-09-30 04:34:20 +00:00
|
|
|
## Build
|
|
|
|
|
2020-09-28 07:26:16 +00:00
|
|
|
```bash
|
2020-09-30 04:34:20 +00:00
|
|
|
export GOFLAGS="-mod=vendor"
|
2020-09-28 07:26:16 +00:00
|
|
|
go mod tidy
|
|
|
|
go mod vendor
|
|
|
|
go generate -mod=vendor ./...
|
|
|
|
go build -mod=vendor .
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./goserv run --listen :3000 --serve-path ./overrides
|
|
|
|
```
|
2020-09-29 03:17:10 +00:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
Copyright 2020. All rights reserved.
|