Building a Sinatra app in Ruby - Honeybadger Developer Blog Sinatra is a lightweight web application framework written in Ruby. The framework focuses on being minimalistic, allowing developers to quickly create web applications without having to deal with a lot of the boilerplate code. We'll use Sinatra to build a simple URL-shortening app.

11m read time From honeybadger.io
Post cover image
Table of contents
TakeawaysPre-requisitesWhy Sinatra?An overview of the app we'll be buildingBuilding a URL shortener using SinatraModular vs. classical app structureInstalling Sinatra and initializing the projectAdding a Gemfile , Rack configuration and RakefileAdding a database connection and Active Record modelDefining the ShortLink model and Active Record migrationWorking with Sinatra viewsRunning the appWrapping up and next steps

Sort: