add lists

This commit is contained in:
Asim Aslam
2022-02-20 11:57:07 +00:00
parent ea95c4954d
commit 3104133e38
9 changed files with 1850 additions and 0 deletions

29
lists/Makefile Normal file
View File

@@ -0,0 +1,29 @@
GOPATH:=$(shell go env GOPATH)
.PHONY: api
api:
protoc --openapi_out=. --proto_path=. proto/lists.proto
.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: proto
proto:
protoc --proto_path=. --micro_out=. --go_out=:. proto/lists.proto
.PHONY: build
build:
go build -o lists *.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t lists:latest