- Server: Nodejs (TypeScript)
- Client: Web Browser (Typescript)
example of generating a webrpc server and client from service.ridl schema.
- Install nodejs + yarn
- $
make bootstrap
-- runs yarn on both ./server and ./webapp - $
make run-server
- $
make run-client
Visit http://localhost:4444 !
The cool thing about webrpc and other schema-driven rpc libraries (like grpc), is that you can generate a Go client for this node server just by running:
webrpc-gen -schema=service.ridl -target=go -pkg=proto -client -out=./proto/client.gen.go
and tada, your Go programs now have full type definitions and network communication to the node server!