×Video encoding is running slowly right now. You can keep uploading, but it may be awhile before it converts. We apologize for the inconvenience!
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 3 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

2 Related collections

Albums Albums

Statistics

  •  
    plays
    likes
    comments
  • Total
    plays 4,346
    likes 15
    comments 4
  • Nov 11th
    plays 0
    likes 0
    comments 0
  • Nov 10th
    plays 0
    likes 0
    comments 0
  • Nov 9th
    plays 3
    likes 0
    comments 0
  • Nov 8th
    plays 0
    likes 0
    comments 0
  • Nov 7th
    plays 1
    likes 0
    comments 0
  • Nov 6th
    plays 0
    likes 0
    comments 0
  • Nov 5th
    plays 0
    likes 0
    comments 0
  • Nov 4th
    plays 4
    likes 0
    comments 0
Previous Week

Downloads

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