Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple example of a gRPC server and client using Node.js:

License

NotificationsYou must be signed in to change notification settings

vinodnextcoder/simple-grpc-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • First, you'll need to install the required dependencies:
git clonecd simple-grpc-nodejsnpm i
  • Then, let's create a gRPC service definition in example.proto:
  • Next, let's create a server that implements the Greeter service:
  • Finally, let's create a client that calls the SayHello method on the server:

That's it! This is a very basic example of gRPC in Node.js. For more advanced usage, you can refer to the official gRPC documentation:

To run

First bash or terminal

node ./greeter.js

Second bash or terminal

node ./SayHello.js

About

Simple example of a gRPC server and client using Node.js:

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp