Skip to content

0xernesto/grpc-server-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GRPC Server Client

This is an example of a simple gRPC server and client that can be tested locally or in a deployed environment, such as Amazon ECS with Fargate instances.

Local Testing

  1. cd greeter_server
  2. Open up a terminal window.
  3. Run npm install
  4. Run node greeter_server.js
  5. Open up a second terminal window.
  6. cd greeter_client
  7. Run npm install
  8. Run node greeter_client.js

Build and Push Images to Docker Hub

Make sure to:

  • Create a Docker Hub account (if you don't have one).
  • Create a repo for greeter_server and separate one for greeter_client.
  • cd into /greeter_server or /greeter_client before running the commands below for each service.
docker build -t <DOCKER_USERNAME>/<DOCKER_REPO>:latest .
docker push <DOCKER_USERNAME>/<DOCKER_REPO>:latest

About

Example of gRPC server and client.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published