How do I initialize and use PubNub in my Node.JS application within Heroku?

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

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