Files
services/quran/Makefile
Asim Aslam f0542b1a6a Quran API (#205)
* Add basic version of a Quran API

* remove examples json swp

* fix search translation

* add examples json
2021-09-14 18:45:22 +01:00

29 lines
571 B
Makefile

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