tericcabrel / node-rpc-server

Node.js implementation of a RPC Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node RPC Server

Get the URL of a service by his name through JSON-RPC. It can be useful for service discovery implementation in an application built with a micro service architecture

Installation

$ git clone https://github.com/tericcabrel/node-rpc-server.git
$ cd node-rpc-server
$ yarn
$ cp public/service.example.json public/service.json 
$ yarn start

Make a request with the client

$ yarn client [serviceName]

Available service name: google, facebook, twitter, github, microsoft, apple, amazon, netflix

####Example

$ yarn client google

Result =>  { result: 'https://google.com' }

About

Node.js implementation of a RPC Server


Languages

Language:TypeScript 100.0%