application made in node.js with gRPC server and javascript/typescript.
npm install
To compile the .proto
files, you need to have protoc installed (it's important to add in your environment variables in the PATH).
npm run compile # in the root directory
npm run start:server
npm run start:client
Install the plugin grpc-web. Rename the executable protoc-gen-grpc-web-VERSION-PLATFORM to protoc-gen-grpc-web. (it's important to add in your environment variables in the PATH).
Compile gRPC web
npm run compile:grpc_web
With the webpack and webpack-cli
dependency installed
npm run bundle
Start the server gRPC: npm run start:server
.
Then start an HTTP server of your choice (ex.: php -S localhost:8080) in the web
folder.