-
Notifications
You must be signed in to change notification settings - Fork 142
/
Copy pathMakefile
41 lines (28 loc) · 790 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
clean:
rm pb/*
rm swagger/*
gen:
protoc --proto_path=proto proto/*.proto --go_out=:pb --go-grpc_out=:pb --grpc-gateway_out=:pb --openapiv2_out=:swagger
server1:
go run cmd/server/main.go -port 50051
server2:
go run cmd/server/main.go -port 50052
server1-tls:
go run cmd/server/main.go -port 50051 -tls
server2-tls:
go run cmd/server/main.go -port 50052 -tls
server:
go run cmd/server/main.go -port 8080
server-tls:
go run cmd/server/main.go -port 8080 -tls
rest:
go run cmd/server/main.go -port 8081 -type rest -endpoint 0.0.0.0:8080
client:
go run cmd/client/main.go -address 0.0.0.0:8080
client-tls:
go run cmd/client/main.go -address 0.0.0.0:8080 -tls
test:
go test -cover -race ./...
cert:
cd cert; ./gen.sh; cd ..
.PHONY: clean gen server client test cert