Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A PubSub hub implementation in node.js

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 routes
Octocat-spinner-32 tests
Octocat-spinner-32 views
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
Octocat-spinner-32 SCHEMA.md
Octocat-spinner-32 app.js
Octocat-spinner-32 example_local.json
Octocat-spinner-32 factory.js
Octocat-spinner-32 package.json
README.md

PubHub

A node.js implementation of a PubSub hub which allows one to many communication:

  • one: the feed to subscribe to.
  • many: the subscribers to respond to.

Dependencies

This application requires MySQL as a persistant data store. To connect to the database copy the example_local.json file to local.json and fill out the appropriate connection details.

Installation

It's easiest to install PubHub with npm:

npm install

The specific packages used are listed in the package.json file.

Currently, you must manually create the MySQL database tables. See SCHEMA.md for the commands to do this.

After the database is created, copy example_local.json to local.json and fill out the appropriate connection settings.

Running

node app.js

The server listens on port 3000 by default. You can add subscriptions by sending Pubsubhubbub subscribe requests to $HOST:3000/subscribe.

Something went wrong with that request. Please try again.