This video walks through the creation of the site isitcodemashyet.com to show how easy it is to create simple web applications using the Sinatra framework. This video assumes prior experience with the Ruby language, and may be easier to grasp with Ruby web development experience. For more information on the CodeMash conference see codemash.org.

Links used in this video:

Sinatra - sinatra.rubyforge.org
IsItCodeMashYet Source - github.com/densitypop/isitcodemashyet
FollowCost - followcost.com
The inspiration for this app - istwitterdown.com
Haml - github.com/nex3/haml

Credits

15 Likes

  • Juarez P. A. Filho 11 months ago
    Really cool. It's very simple. I'll try Sinatra soon.
  •  
  • Dave Everitt 4 months ago
    Great - I'm now happily up and running with Sinatra. However, there are two things I didn't get from this screencast:

    1. my external stylesheet didn't load (yours did),

    2. you're running Mongrel via Rack, but the Sinatra docs don't explain this too well - I failed to get my 'config.ru' file to work (like yours apparently does).

    But thanks!
  • Dave Everitt 3 months ago
    The stylesheet problem was my typing error :-(
    Rack still needs a little more explaining :-)
  •  
  • Joe Fiorini 2 months ago
    Dave, thanks for the comment! Rack comes with it's own executable to serve your apps called rackup. The 'config.ru' file is known as a 'rackup' script (hence the .ru extension). Under the covers, it's just a plain ol' Ruby script. To startup up the server just run:

    rackup config.ru

    You can pass options to rackup like -p #### for the port (default is 9999), so -p 3333 would start on port 3333.

    Hope this helps!
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

4 Related collections

Groups Groups
Channels Channels
Albums Albums

Statistics

  •  
    plays
    likes
    comments
  • Total
    plays 4,359
    likes 15
    comments 4
  • Nov 25th
    plays 0
    likes 0
    comments 0
  • Nov 24th
    plays 0
    likes 0
    comments 0
  • Nov 23rd
    plays 4
    likes 0
    comments 0
  • Nov 22nd
    plays 0
    likes 0
    comments 0
  • Nov 21st
    plays 3
    likes 0
    comments 0
  • Nov 20th
    plays 0
    likes 0
    comments 0
  • Nov 19th
    plays 0
    likes 0
    comments 0
  • Nov 18th
    plays 1
    likes 0
    comments 0
Previous Week

Downloads

Please join Vimeo or log in to download the original file. It only takes a few seconds.