Getting started with Hanami 2, a modern Ruby web framework for fast, modular apps. Covers installation, project structure, actions, views, routes, and params.
Tutorial series
Hanami Basics
4 tutorials — follow in order for the best learning path.
- Getting Started with Hanami 2: Build Modern Ruby Web Apps
- Hanami Actions and Views: Handle Requests and Render Responses
Learn Hanami actions and views: handle HTTP requests, work with route and query parameters, render templates, and return JSON responses in Hanami 2.
- ROM Persistence in Hanami: Relations, Repositories, Commands
Learn how to use ROM persistence in Hanami 2 applications with practical examples for relations, repositories, entities, migrations, and transactions.
- Hanami Slices: Modular Code Organisation for Ruby Apps
Learn organising code with Hanami slices for modular apps. Create domain boundaries, share code between features, and keep your architecture clean.