How to Use Sinatra to Build a Ruby Application

This page summarizes the projects mentioned and recommended in the original post on dev.to

Nutrient - The #1 PDF SDK Library
Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
nutrient.io
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
  1. Sinatra

    Classy web-development dressed in a DSL (official / canonical repo)

    Compared to Ruby on Rails, a full-stack web framework, Sinatra is a very lean micro-framework originally developed by Blake Mizerany to help Ruby developers build applications with "minimal effort".

  2. Nutrient

    Nutrient - The #1 PDF SDK Library. Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.

    Nutrient logo
  3. Rack

    A modular Ruby web server interface.

    Because of its lightweight and Rack-based architecture, Sinatra is great for building APIs, mountable app engines, command-line tools, and simple apps like the one we'll build in this tutorial.

  4. cost_calc_app

    A Sinatra app to help digital nomads know if they can afford to live in a city given how much they earn. This app was built to accompany the blog post "How to Use Sinatra to Build a Ruby Application"

    You can also get the full code for the example app here.

  5. Thin

    A very fast & simple Ruby web server

    This one file contains everything needed for this simplified app to run. Run it with ruby main.rb, which should spin up an instance of the Thin web server (the default web server that comes with Sinatra). Visit localhost:4567 and you'll see the JSON response.

  6. AppSignal

    🟥 AppSignal for Ruby gem

    Once you've successfully deployed your Sinatra app, you can easily use Appsignal's Ruby APM service. AppSignal offers an integration for Rails and Rack-based apps like Sinatra.

  7. sinatra-datamapper

    Discontinued A Sinatra extension for DataMapper support.

    Database adapter and ORM gems included in the Gemfile. We are using ActiveRecord for our app. Datamapper is another option you could use.

  8. rubygems

    Library packaging and distribution for Ruby.

    # Gemfile source "https://rubygems.org" # Ruby version ruby "3.0.4" gem 'sinatra' gem 'activerecord' gem 'sinatra-activerecord' # ORM gem gem 'sinatra-contrib' gem 'thin' gem 'rake' gem 'faraday' group :development do gem 'sqlite3' # Development database adaptor gem gem 'tux' # gives you access to an interactive console similar to 'rails console' gem 'dotenv' end group :production do gem 'pg' # Production database adaptor gem end

  9. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  10. Bulma

    Modern CSS framework based on Flexbox

    We also add a local copy of Bulma CSS and a custom stylesheet in public/css to provide styling for our app.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Rails 7.0.2.2, 6.1.4.6, 6.0.4.6, and 5.2.6.2 have been released (security patch)

    3 projects | /r/ruby | 11 Feb 2022
  • Sinatra and ActiveRecord::QueryCache problem

    2 projects | /r/rails | 8 Apr 2021
  • Dusting off my rails knowledge, need some tips / guidance on rails 7 and production

    10 projects | /r/rails | 7 Apr 2023
  • Rails 7.0 has been released

    4 projects | /r/ruby | 16 Dec 2021
  • The time is right for Hotwire

    7 projects | /r/ruby | 8 Dec 2021

Did you know that Ruby is
the 12th most popular programming language
based on number of references?