Setting up Showoff


This guide is intended to run on Linux, preferably with aptitude and in Debian (tl;dr you have Ubuntu)

I suggest you check out the Guide to Setting Up Linux if you want to do this.

However, it CAN still work, provided that you have all the stuff needed here. It would work because showoff, git and gem have their respective Windows versions.

(Ruby and RubyGems in particular, and if your path to RubyGems is correct.)

 

Prerequisites....

  1. You have Ruby and RubyGems and is set up.
  2. Heroku is set up.
  3. Git is set up properly (SSH keys and all that).

 

Pointers...

 

Procedure

Once again, Linux only! However, there are ways to do this in Windows. That's what the pointers are for.

 

 

<name> refers to the name of your presentation. It's up to you.

I.  Getting showoff

  1. Open up a terminal 

  2. Showoff requires Nokogiri. To do that:

    1. sudo apt-get install libxslt-dev libxml2-dev

    2. sudo gem install nokogiri 

  3. Type gem install showoff. Use sudo when necessary.

  4. Done.  If you enter showoff, you should get something like this.

 

II. Make your showoff presentation

Initialize Showoff

  1. Create a showoff presentation. Use showoff create <name> 
  2. Go to your presentation folder. (cd <folder name>, or open it as usual) 
  3. Initialize Git. (git init)

 

Have fun

You should have new stuff from here on out. You'll get these files:

 

You can open any of these files through a text editor like gedit.

 

I'll only explain up to there. Read up on how markdown files work on showoff. It's in showoff's GitHub repo.

 

Running your slideshow

  1. Go back to the terminal.
  2. Enter showoff serve.
  3. When it shows the line with HTTPServer#Start, open your web browser then go to http://localhost:9090/
  4. You should see your presentation there.
  5. To end your slideshow and continue using the terminal again, press CTRL+C

 

 

III. Deploy to Heroku

  1. Enter showoff heroku <name>. You'll get these:
    1. heroku create <name>
    2. git add .gems config.ru
    3. git commit -m 'herokuized'
    4. git push heroku master
  2. Done!
  3. If it fails, try doing this after performing the commands above:
    1. git add .
    2. git commit -m 'this one adds all files' 
    3. git push heroku master