Skip to content

Latest commit

 

History

History
 
 

hello-webrpc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

hello-webrpc

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

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

  1. $ make tools - to download webify cli to serve the 'webapp/' local files
  2. $ make run-server - to start the Go server at http://localhost:4242/
  3. $ make run-client - to serve webapp files 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.