Skip to content

OpenShift Python and More for your integration into RedHat and PubNub.

License

Notifications You must be signed in to change notification settings

pubnub/pubnub-openshift-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PubNub on OpenShift in 5 Minutes

This git repository demonstrates how to send messages via PubNub's real-time network on OpenShift using Python.

###Step 1: Create an OpenShift App###

Create an account at http://openshift.redhat.com and set up your local machine with the client tools.

Create a Python-2.7 application (you can call your application whatever you want) and change into the application directory.

    rhc app create myapp python-2.7 --from-code https://github.com/pubnub/pubnub-openshift-quickstart
    cd myapp

###Step 2: Get a PubNub Account###

  1. Register at http://www.pubnub.com/free-trial
  2. Retrieve your account's publish and subscribe keys
  3. Edit the application file under wsgi folder
  4. Replace the demo keys in init_pubnub() function
    "demo",  # PUBLISH_KEY
    "demo",  # SUBSCRIBE_KEY

###Step 3: Deploy your app###

    git add .
    git commit -m "my first commmit"
    git push

###Step 4: View your app!###

    http://myapp-$yournamespace.rhcloud.com

More Information

For PubNub's developer resources visit http://www.pubnub.com/devcenter

For more info on PubNub's Python SDK visit https://github.com/pubnub/python

For all available PubNub SDKs visit: https://github.com/pubnub/pubnub-api

About

OpenShift Python and More for your integration into RedHat and PubNub.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages