- Install the bundle gems.
$ bundle install - Make sure the 'sinatra' gem is installed.
$ gem install sinatra - From the command line, you can start the server by 'ruby main.rb'
$ ruby main.rb
http://127.0.0.1:4567/ - If you have the 'shotgun' gem installed, you can instead run 'shotgun main.rb'
or
$ shotgun main.rb
http://127.0.0.1:9393/ - ctrl+c to stop the server