hello-webrpc-ts/

directory
v0.5.2-0...-162e27b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2020 License: MIT

README

hello-webrpc-ts

  • Server: Go
  • Client: Web Browser (Typescript)

Simple client+server app with Go api backend (server) and Typescript Webapp (client).

  1. $ make bootstrap - installs node modules for the webapp (client)
  2. $ make run-server - to start the Go server at http://localhost:4242/
  3. $ make run-client - build+start webapp via webpack dev server at http://localhost:4444/
  4. Open your browser to https://localhost:4444/ and open your console, and see rpc calls, tada

webrpc comes with its own schema design language called RIDL, which stands for "RPC interface design language" :) it reads and feels like documentation, but it very flexible. See hello-api.ridl for the RIDL file for this service.

as well, webrpc supports a json-formatted schema with the identical functionality as the RIDL format. See here, hello-api.webrpc.json.

Directories

Path Synopsis
hello-webrpc v1.0.0 87ce8159bce3ad056518dfb1f1877b1a1012b34d -- This file has been generated by https://github.com/webrpc/webrpc using gen/golang Do not edit by hand.
hello-webrpc v1.0.0 87ce8159bce3ad056518dfb1f1877b1a1012b34d -- This file has been generated by https://github.com/webrpc/webrpc using gen/golang Do not edit by hand.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL