/grpc-next-node-example

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

Primary LanguageJavaScript

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