Broadcast your reveal.js slide presentation (emit page-change events to connected browsers) by setting your broadcast secret in the presenter's browser.
Just like any other nodejs app, run:
npm install
followed by
npm start
OpenShift offers free hosting, providing an easy way to clone+deploy this project in a single command:
rhc app create slides nodejs-0.10 --from-code=https://github.com/ryanj/darkslides.git
Commit your changes locally:
git add views/index.ejs
git commit -m 'Replacing the default slide content with a new deck'
Then push your updates to OpenShift
git push
Additional updates can be made via the same git add, git commit, and git push workflow.
Your broadcast secret and socket channel identifier will be written to your application's log file during it's startup phase. Tail your logs during a deploy (rhc tail APP_NAME), or use rhc ssh APP_NAME to connect to your application and review it's log output with tail -f $OPENSHIFT_NODEJS_LOG_DIR/node.log.
GENERATING A NEW DARKSLIDE SECRET: { secret: '1365092520963708958', socketId: '65f796f6fec6e9a7' }
Set your broadcaster token by adding your own broadcast secret (shown in the server init output), to the following URL:
http://YOUR_APPLICATION_URL/#setToken:1365092520963708958
Presenter tokens are only parsed during initial page load, so you may need to reload the page url in order to persist the token to your browser's localStorage area.
A new secret and socketId pair will be generated each time your application starts. To reuse an existing pair of broadcaster credentials on OpenShift, run the following two commands:
rhc env set OPENSHIFT_DARKSLIDE_SECRET='1365092520963708958'
rhc env set OPENSHIFT_DARKSLIDE_SOCKET='65f796f6fec6e9a7'
To convert your slides to a PDF, just print to a file with your page layout configured for landscape mode.
If this is your first time using OpenShift Online or Node.js, you'll have some quick prep-work to do:
- Create an OpenShift Online account
- If you don't already have the rhc (Red Hat Cloud) command-line tools, run:
sudo gem install rhc - Run
rhc setupto link your OpenShift Online account with your local development environment, and to select an application namespace - Download and install Node.js for use in your local development environment: http://nodejs.org
If you need any additional help getting started, these links may come in handy:


