Skip to content

Commit

Permalink
Add node client echo example
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniels committed Sep 22, 2024
1 parent 751d5a3 commit 493c0f9
Show file tree
Hide file tree
Showing 7 changed files with 4,463 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rpc/examples/echo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ test-run-server: build install-playwright
run-client:
go run client/main.go -host=echo-server

run-node-client:
cd node-client && npm start

setup-auth:
cd ${ROOT_DIR} && make setup-cert setup-priv-key

Expand Down
4 changes: 4 additions & 0 deletions rpc/examples/echo/node-client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
src/gen
src/index.js
dist
11 changes: 11 additions & 0 deletions rpc/examples/echo/node-client/etc/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

rm -rf src/gen

# Ours
mkdir -p src/gen/proto/rpc/examples
cp -R ../../../../dist/js/proto/rpc/examples/echo src/gen/proto/rpc/examples

# Third-Party
mkdir -p src/gen/google
cp -R ../../../../dist/js/google/api src/gen/google
Loading

0 comments on commit 493c0f9

Please sign in to comment.