There are no special steps to get started with PubNub and Node on Heroku (no need to modify package.json files):

  1. Include the PubNub library in your git folder and require("pubnub") in your Node application
  2. Get your pub/sub key set from the PubNub module
  3. Click on Add-ons drop-down menu and select PubNub
  4. Heroku will load the PubNub Add-on page and show a Usage Dashboard
  5. Grab the Publish/Subscribe/Secret keys by scrolling down the page
  6. When Initializing PubNub in Node, make sure to include your API Keys

pubnub_heroku.png