This commit is contained in:
Asim Aslam
2022-02-20 21:39:59 +00:00
parent 731f811a47
commit 0a06c3de0c
13 changed files with 1004 additions and 0 deletions

27
meme/Makefile Normal file
View File

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