# install golang
$ tar -C /usr/local -xzf go1.15.2.linux-amd64.tar.gz
$ export PATH=$PATH:/usr/local/go/bin
# set GOPATH
$ mkdir $HOME/go
$ export GOPATH=$HOME/go
$ export PATH=$GOPATH/bin:$PATH
# generate *.go from *.proto
$ ./progo-gen.sh
# install project dependencies
$ go get
$ go mod vendor
# build binary
$ make build
# run server
$ ./app
# run client
$ RUN_MODE=client ./app
# HTTP call
$ curl http://localhost:9080/healthcheck
{}
-
Notifications
You must be signed in to change notification settings - Fork 0
lechuckroh/grpc-go-server
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
gRPC go server
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published