Classy Web Development with Sinatra Episode 1: A Tiny Web App

Posted in Development, Frameworks, Web Technologies on February 04, 2009


Classy Web Development with Sinatra Episode 1:  A Tiny Web App

Sinatra makes it easy to write simple web applications in a hurry. In this episode, we’ll write a URL shortener application to learn the essential Sinatra features, test the application, and deploy it to a production server. You’ll learn how to:

  • Create a simple web application with Sinatra
  • Write handlers and ERB templates
  • Handle form parameters
  • Use multiple files and custom Ruby libraries
  • Define arbitrarily complex routes
  • Write helper methods
  • Create a layout file and use static assets
  • Write and run tests
  • Make a Rackup file
  • Deploy Sinatra apps using Passenger and Capistrano

Watch Video

Tags: Ruby, Frameworks, Capistrano, REST, The Pragmatic Programmers, Sinatra