mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-19 05:55:19 +00:00
feat: add movie search service (#293)
* feat: add movie search service close #183 * chore: update display name * chore: code review fix * feat: avoid panic when fields would be null or missed * chore: make it more readable * fix: correct format
This commit is contained in:
28
movie/Makefile
Normal file
28
movie/Makefile
Normal 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/movie.proto
|
||||
|
||||
.PHONY: proto
|
||||
proto:
|
||||
protoc --proto_path=. --micro_out=. --go_out=:. proto/movie.proto
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
go build -o movie *.go
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
go test -v ./... -cover
|
||||
|
||||
.PHONY: docker
|
||||
docker:
|
||||
docker build . -t movie:latest
|
||||
Reference in New Issue
Block a user