Skip to content

This is an example of how to use gRPC with NodeJS and NextJS.

Notifications You must be signed in to change notification settings

julianocomg/grpc-next-node-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an example of how to use gRPC with NodeJS and NextJS

Getting Started

First: start the NodeJS gRPC server and the Envoy proxy (Docker needed):

cd server && yarn install && yarn start-server & yarn start-proxy

Second: from a new terminal tab, start the NextJS client

cd client && yarn install && yarn dev

Access this endpoint on your web browser:

http://localhost:3000

If you want to re-generate the gRPC classes, just run the following command from the client/ folder

yarn generate-grpc-classes

About

This is an example of how to use gRPC with NodeJS and NextJS.

Resources

Stars

Watchers

Forks