0.0
No commit activity in last 3 years
No release in over 3 years
Use Pusher to drive your Showoff presentations on remote machines.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.8.3
~> 0.7.0
 Project Readme

Use Pusher to remotely drive your ShowOff presentation on remote users' browsers.

Setup

This gem is preconfigured to use the Heroku addon format for Pusher configs. These instructions assume you've already set up your ShowOff presentation for Heroku (showoff heroku).

Install Pusher addon

heroku addons:add pusher
heroku config
# => PUSHER_SOCKET_URL   => ws://ws.pusherapp.com:80/app/PUSHER_SOCKET_ID
# => PUSHER_URL          => http://PUSHER_KEY:PUSHER_SECRET@api.pusherapp.com/apps/PUSHER_APP_ID

Add showoff-pusher to your Gemfile

gem 'showoff-pusher'

Add ShowOff::Pusher to your config.ru rackup file

require "showoff"
require "showoff/pusher"

use ShowOff::Pusher
run ShowOff.new

Load the required javascripts in your first slide

!SLIDE 
# My Presentation #

<script src="http://js.pusherapp.com/1.9/pusher.min.js"></script>
<script src="/javascripts/pusher.js"></script>

Optional: Customize your secret

heroku config:add SHOWOFF_SECRET='some_super_secret_key'

Usage

In your browser, visit the following URL to control the presentation:

http://myapp.herokuapp.com/presenter?presenter=SHOWOFF_SECRET

By default, SHOWOFF_SECRET is PleaseChangeMe.

Your users will be able to follow along with the presentation by visiting http://myapp.herokuapp.com/

Notes

Adapted from lmarburger's gist: https://gist.github.com/1180118