This provides step-by-step tutorials of building realtime web applications using PubNub global data stream network.
PubNub is a globally distributed data stream network that allows you to build real-time applications easily. Its core feature, pub/sub, sends and receives data between multiple users simultaneously.
You will be learning how to write simple applications using PubNub JavaScript SDK 3.x.
Sign up PubNub to get your own API keys.
Once you are signed up, you need to get your own keys to get started:
- Go to admin.pubnub.com
- Create a new app by entering an app name (e.g. chat-app), and press Create a New App
- Once the app is created, click the app from the dashboard. Now you should see your publish and subscribe keys.
Clone this repo with git to your local working environment to get started.
$ git clone https://github.com/pubnub/javascript-workshop.git
Or just download the zip file, and unzip in your working directory.
Your starting point, js/app.js has very minimal code that scaffold the app you're going to build, while final-app.js contains the entire code you can reference any time throughout the workshop.
Also, index.html and css/style.css have been completed for you, but feel free to modify the look-and-feel.
Now, let's get started!
We have many tutorials on PubNub.com and elsewhere!
- PubNub JavaScript SDK - Getting started guide and tutorials
- Getting Started Guide - Walk through every API
- University of PubNub - Video lecture series
- More on Vimeo