-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (33 loc) · 995 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
all: deps install build fmt
build: proto web-server web-app
deps: protoc-gen-go grpc-gateway glide yarn create-react-app
install:
glide install
cd ./server/web_app && yarn install
run:
./book_parser
web-server:
go build
web-app:
cd ./server/web_app && npm run build
fmt:
go fmt ./
proto:
protoc -I/usr/local/include -I. \
-I$$GOPATH/src \
-I$$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--go_out=plugins=grpc:. server/proto/*.proto
protoc -I/usr/local/include -I. \
-I$$GOPATH/src \
-I$$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--grpc-gateway_out=logtostderr=true:. server/proto/*.proto
protoc-gen-go:
go get -u github.com/golang/protobuf/protoc-gen-go
grpc-gateway:
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
glide:
go get -u github.com/Masterminds/glide
yarn:
curl -o- -L https://yarnpkg.com/install.sh | bash
create-react-app:
npm install -g create-react-app