1. Go to PubNub and Click on Sign Up Free.
2. Enter all the specific information in the required fields, and click on Create Account button.

3. Click on Create New App +  button.

4. Fill App name and Click on Create button.
5. Under Demo Keyset, click on any of keys, Publish Key or Subscribe Key.
6. Under Keys, you will see your PubNub Publish Key and Subscribe Key Copy them.
7. Required settings for PubNub to work with this App shown below.