This repository contains the generated protobuf code and client implementations for both node.js and the browser.
npx lerna bootstrap
By default, bootstrapping does not set up grpc-tools because it breaks on newer macs. If you're not on an m1 mac (or other arm64 machine), then install grpc-tools binaries via npm by running:
$ npm install grpc-tools
Until grpc-node#1405 is resolved, there are no pre-built GRPC binaries for arm64 machines like the recent m1 and m2 mac processors.
To build on arm64 machines you must follow these instructions.
git clone [email protected]:grpc/grpc-node.git
git submodule update --init --recursive
npm install --ignore-scripts
cd packages/grpc-tools
./build_binaries.sh
cp build/bin/* path/to/this/repo/node_modules/grpc-tools/bin/
The codegen
command generates protobuf code from the .proto files.
npm run codegen
The build
command compiles typescript and generates browser bundles.
$ npm run build
The test
command runs any automated tests in the project.
$ npm run test