How to run sinatra example: Install dependencies: bundle install Run the sinatra app: bundle exec ruby webapp.rb The app will run at port 4567. Open localhost:4567 from your browser.