Broadcast your own reveal.js presentations using OpenShift
JavaScript CSS Shell F#
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
img
js
lib
node_modules
plugin
views
.gitignore
.travis.yml
Gruntfile.js
LICENSE
README
README.md
deplist.txt
npm_global_module_list
package.json
server.js

README.md

Welcome to the DarkSlides

Broadcast your reveal.js slide presentation (emit page-change events to connected browsers) by setting your broadcast secret in the presenter's browser.

Build Status HTMLlint

Local Development

Just like any other nodejs app, run:

npm install

followed by

npm start

Hosting on OpenShift

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

Updating your OpenShift-hosted slides:

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.

Finding your broadcast secrets

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' }

Configuring a browser for broadcasting

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.

Reusing your secret tokens

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'

Export to PDF

To convert your slides to a PDF, just print to a file with your page layout configured for landscape mode.

Basic Setup

If this is your first time using OpenShift Online or Node.js, you'll have some quick prep-work to do:

  1. Create an OpenShift Online account
  2. If you don't already have the rhc (Red Hat Cloud) command-line tools, run: sudo gem install rhc
  3. Run rhc setup to link your OpenShift Online account with your local development environment, and to select an application namespace
  4. 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: