Skip to content

rakelkar/grpc-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC timing greeter client and server

This is an example GRPC client and server based on the example in the GRPC repo.

The project depends on the Grpc and Google.Protobuf NuGet packages.

PREREQUISITES FOR RUNNING IN CONTAINERS

None :) the repo uses Docker multi-state build

BUILD

> cd greeter
> docker-compose build

RUN

> docker-compose up

Note: the client will fail since it is currently attempting to bind to localhost. Edit the compose file to put in your host name for GREETINGS_HOST

PREREQUISITES FOR RUNNING ON HOST

BUILD ON HOST

(you dont have to do this - see docker-compose instead)

From the greeter/GreetingClient (and Server) directories:

  • dotnet restore

  • dotnet build **/project.json (this will automatically download NuGet dependencies)

RUN ON HOST

(you dont have to do this - see docker-compose instead)

  • Run the server

    > cd GreeterServer
    > dotnet run
    
  • Run the client

    > cd GreeterClient
    > dotnet run
    

More

You can find a more detailed tutorial about Grpc in [gRPC Basics: C#][]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published