Giter VIP home page Giter VIP logo

lpoppublish's Introduction

Build Status NPM version

lpoppublish will listen for messages on N lists on a redis instance and publish those messages on redis channels.

Installation and Environment Setup

Install node.js (See download and install instructions here: http://nodejs.org/).

Install redis (See download and install instructions http://redis.io/topics/quickstart)

Install coffee-script

	> npm install -g coffee-script

General installation

> npm install lpoppublish -g

For development / testing

Clone this repository

> git clone [email protected]:NathanGRomano/lpoppublish.git

cd into the app directory and install the dependencies

> npm install && npm shrinkwrap --dev

If you would like to install lpoppublish as a command line tool

> npm install -g

Running the Application

Start off by

> lpoppublish

You will get this output

  Usage: lpoppublish.coffee [options]

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    -q, --queues <string>    the queues to read from
    -c, --channels <string>  the channels to write to
    -i, --interval <number>  the number of miliseconds to wait before polling
    -r, --requests <number>  the number of requests to make each interval

Here is an example of listening on 3 lists and publishing to 3 channels with a sleep of 100 miliseconds and we poll twice during each interval.

> lpoppublish -q a,b,c -c a,b,c -i 100 -r 2

Running Tests

Unit Tests

Tests are run using grunt. You must first globally install the grunt-cli with npm.

> sudo npm install -g grunt-cli

To run the tets, just run grunt

> grunt

TODO

Specify the host and port in which redis lives

lpoppublish's People

Contributors

nathangromano avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.