Coder Social home page Coder Social logo

maildealb / socketio-openshift-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nodebooks/socketio-openshift-example

0.0 1.0 0.0 172 KB

An example how to use websockets in OpenShift cloud and locally

License: MIT License

JavaScript 88.04% HTML 11.96%

socketio-openshift-example's Introduction

socketio-openshift-example

OpenShift websocket support demystified for application developers. This example app can be run locally on your own dev machine and in the OpenShift cloud. This example utilizes the express.js and socket.io libraries in node.js. See the config.js for the details for OpenShift.

Let's play ping-pong.

Run in OpenShift

Once you have registered to OpenShift and loaded all the necessary tools to your computer, create and start a new app directly from this repo:

rhc app create wsexample nodejs-0.10 --from-code https://github.com/nodebooks/socketio-openshift-example.git

Wait a moment and open your OpenShift app in your browser.

Run locally

Here are the console commands for Ubuntu Linux and/or Mac OS X with relevant tools installed. The first command cd ~ switches to your home directory, skip this if you want to install to some other dir.

cd ~
git clone https://github.com/nodebooks/socketio-openshift-example.git wsexample
cd wsexample
npm install
node server.js # or nodejs server.js in some Ubuntu releases

Now open your browser on http://127.0.0.1:8080

socketio-openshift-example's People

Contributors

nodebooks avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.