rename ask to answer

This commit is contained in:
Asim Aslam
2021-06-30 15:35:06 +01:00
parent 9600a24a71
commit 6d401db8b1
15 changed files with 100 additions and 99 deletions

28
answer/Makefile Normal file
View File

@@ -0,0 +1,28 @@
GOPATH:=$(shell go env GOPATH)
.PHONY: init
init:
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get github.com/micro/micro/v3/cmd/protoc-gen-micro
go get github.com/micro/micro/v3/cmd/protoc-gen-openapi
.PHONY: api
api:
protoc --openapi_out=. --proto_path=. proto/answer.proto
.PHONY: proto
proto:
protoc --proto_path=. --micro_out=. --go_out=:. proto/answer.proto
.PHONY: build
build:
go build -o answer *.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t answer:latest