Build your own web framework in Ruby with Rack, then learn how routing, templates, and middleware fit together in a small app.
Tutorial series
Ruby Web Without Rails
4 tutorials — follow in order for the best learning path.
- Build Your Own Web Framework with Rack in Ruby
- 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.
- 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.
- 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.