Example gRPC server implemented in Node.JS
Deploy the app
export DOMAIN=my.cf.app.domain
cf push -f app-manifest.yml --var domain=$DOMAIN
cf push --no-route node-grpc-test --buildpack https://github.com/cloudfoundry/nodejs-buildpack
# my.cf.app.domain is used as an example for demonstration purpose
cf map-route node-grpc-test my.cf.app.domain --hostname node-grpc-test --app-protocol http2
grpcurl
needs to be installed separately.
grpcurl -proto example.proto node-grpc-test.my.cf.app.domain:443 Example.Run
npm install
PORT=8080 npm start
grpcurl -proto example.proto -plaintext localhost:8080 Example.Run