Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Remotely drive your ShowOff presentation on remote users' terminals. | ||
|
||
## 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 | ||
|
||
```bash | ||
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 | ||
|
||
```ruby | ||
gem 'showoff-pusher' | ||
``` | ||
|
||
### Add ShowOff::Pusher to your config.ru rackup file | ||
|
||
```ruby | ||
require "showoff" | ||
require "showoff/pusher" | ||
|
||
use ShowOff::Pusher | ||
run ShowOff.new | ||
``` | ||
|
||
### Load the required javascripts in your first slide | ||
|
||
```markdown | ||
!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 | ||
|
||
```bash | ||
heroku config:add SHOWOFF_SECRET='some_super_secret_key' | ||
``` | ||
|
||
## Usage | ||
|
||
In your browser, visit the following URL: | ||
|
||
`http://myapp.herokuapp.com/presenter?presenter=SHOWOFF_SECRET` | ||
|
||
By default, `SHOWOFF_SECRET` is `PleaseChangeMe` |