Generic datastore service with basic indexing and querying capabilities, ts client generation (#52)

This commit is contained in:
Janos Dobronszki
2021-02-03 13:20:07 +00:00
committed by GitHub
parent c19bf17fb5
commit a102d9e5f3
32 changed files with 5010 additions and 626 deletions

27
datastore/Makefile Normal file
View File

@@ -0,0 +1,27 @@
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
.PHONY: proto
proto:
protoc --openapi_out=. --proto_path=. --micro_out=. --go_out=:. proto/datastore.proto
.PHONY: docs
docs:
protoc --openapi_out=. --proto_path=. --micro_out=. --go_out=:. proto/datastore.proto
@redoc-cli bundle api-datastore.json
.PHONY: build
build:
go build -o datastore *.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t datastore:latest