Skip to content

opflow/opflow-nodejs-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opflow-nodejs-sample

Opflow for Nodejs sample application

Prerequisites

Install Rabbitmq on Ubuntu

Add the APT repository to your /etc/apt/sources.list.d:

echo 'deb http://www.rabbitmq.com/debian/ testing main' |
     sudo tee /etc/apt/sources.list.d/rabbitmq.list

Add Rabbitmq public key to our trusted key list using apt-key:

wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc |
     sudo apt-key add -

Update the package list:

sudo apt-get update

Install rabbitmq-server package:

sudo apt-get install rabbitmq-server

Installation

Clone source code from github:

git clone https://github.com/opflow/opflow-nodejs-sample.git

Change current working directory to this project:

cd opflow-nodejs-sample

Install npm dependencies:

npm install

Individual examples

RPC worker (server):

DEBUG=fibonacci* node lib/rpc_worker.js

RPC master (client):

DEBUG=fibonacci* node lib/rpc_master.js

Subscriber (Pub/sub server):

DEBUG=fibonacci* node lib/subscriber.js

Publisher (Pub/sub client):

DEBUG=fibonacci* node lib/publisher.js

Launch Server

DEBUG=fibonacci* node server.js

Execute client

DEBUG=fibonacci* node client.js request -n 40

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published