add sunnah api (#210)

This commit is contained in:
Asim Aslam
2021-09-21 15:19:22 +01:00
committed by GitHub
parent 45c7f5b0bf
commit 6e40bfe06a
15 changed files with 2122 additions and 1 deletions

28
sunnah/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/sunnah.proto
.PHONY: proto
proto:
protoc --proto_path=. --micro_out=. --go_out=:. proto/sunnah.proto
.PHONY: build
build:
go build -o sunnah *.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t sunnah:latest