Skip to content

sakiib/grpc-api

Repository files navigation

gRPC API


Clone the repo & run locally:

# install the dependencies
$ make install
# generate pb.go, pb.gw.go, grpc.pb.go
$ make gen
# run the gRPC server & the gateway
# format go code
$ make fmt
# generate tls certificates
$ make gen-certs
# gRPC server running on port: 8080 & the gateway server running on port: 8000
$ make run
# run the unit-tests
$ make unit-tests
# remove the generated pb.go, pb.gw.go, grpc.pb.go
$ make clean
# set environment variable for enabling tls
$ export tls=true

or Use the docker image:

# pull the docker image
$ docker pull sakibalamin/grpc-api:v0.0.1
# run with tls disabled
$ docker run -p 8000:8000 -it sakibalamin/grpc-api:v0.0.1
# run with tls enabled
$ docker run -e tls=true -p 8000:8000 -it sakibalamin/grpc-api:v0.0.1

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published