rubyguides

Tutorial series

Ruby Web Without Rails

4 tutorials — follow in order for the best learning path.

  1. Build Your Own Web Framework with Rack in Ruby

    Build your own web framework in Ruby with Rack, then learn how routing, templates, and middleware fit together in a small app.

  2. Rack Middleware from Scratch: Build Your Own Ruby Middleware

    Build your own Rack middleware from scratch and understand how the middleware stack works in Ruby web applications.

  3. Building Web Apps with Roda: A Routing Tree Framework

    Build web apps with Roda, a routing-tree framework for Ruby. Learn routing trees, plugins, views, and practical patterns for fast web applications.

  4. Getting Started with Sinatra: Build Your First Ruby Web App

    Get started with Sinatra: install the lightweight Ruby web framework, create your first app with routing and ERB templates, and serve static files.