Skip to content

tericcabrel/node-rpc-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published