All you have to do to get a hello world in Sinatra is this:

$ gem install sinatra
$ ruby -rrubygems -e "require 'sinatra'; get('/'){ 'hello world' }"

Take a look at 0.0.0.0:4567 and you'll see the results.

Written by

Hrvoje Šimić

@shimewastaken