Recommendation of the week: Sinatra web microframework

If you are building RESTful services or even small web apps, you could do a lot worse than check out Sinatra, a Ruby based web framework written in under 1500 lines of code.

Sinatra is utterly simple and doesn’t get in the way. Not so many conventions imposed on you either, not even MVC: you can work in any way you like. You can also use Rack middleware with Sinatra, and extend it with, (duh!), extensions.

Here’s a “hello world”:

require 'sinatra'
get '/hi' do
  "Hello World!"
end

It has a fairly complete documentation (here’s a small condensed version) and is used in several big professional projects already, including the GitHub API.

This entry was posted in Recommendation. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>