summaryrefslogtreecommitdiff
path: root/Makefile
blob: 4663b07267e6cfb99977e93462441a7fc243b0df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: help
help:
	@echo "Available targets:"
	@echo "  server        - Run the gRPC server"
	@echo "  test          - Run the tests"

.PHONY: clean
clean:
	@cargo clean

.PHONY: server
server:
	@cargo run --bin helloworld-server

.PHONY: test
test:
	@cargo test

.PHONY: grpcurl
grpcurl:
	@grpcurl -plaintext -import-path ./proto -proto helloworld.proto -d '{"name": "Tonic"}' '[::1]:50051' helloworld.Greeter/SayHello