The web, with simplicity.
This branch contains the code for hanami
2.0.x.
Hanami is a full-stack Ruby web framework. It's made up of smaller, single-purpose libraries.
This repository is for the full-stack framework, which provides the glue that ties all the parts together:
- Hanami::Router - Rack compatible HTTP router for Ruby
- Hanami::Controller - Full featured, fast and testable actions for Rack
- Hanami::View - Presentation with a separation between views and templates
- Hanami::Helpers - View helpers for Ruby applications
- Hanami::Mailer - Mail for Ruby applications
- Hanami::Assets - Assets management for Ruby
These components are designed to be used independently or together in a Hanami application.
Hanami supports Ruby (MRI) 3.0+
gem install hanami
hanami new bookshelf
cd bookshelf && bundle
bundle exec hanami server # visit https://localhost:2300
Please follow along with the Getting Started guide.
You can give back to Open Source, by supporting Hanami development via GitHub Sponsors.
- Home page: https://hanamirb.org
- Community: https://hanamirb.org/community
- Guides: https://guides.hanamirb.org
- Snippets: https://snippets.hanamirb.org
- Mailing List: https://hanamirb.org/mailing-list
- API Doc: https://rdoc.info/gems/hanami
- Bugs/Issues: https://github.com/hanami/hanami/issues
- Stack Overflow: https://stackoverflow.com/questions/tagged/hanami
- Forum: https://discourse.hanamirb.org
- Chat: https://chat.hanamirb.org
We strive for an inclusive and helpful community. We have a Code of Conduct to handle controversial cases. In general, we expect you to be nice with other people. Our hope is for a great software and a great Community.
- Fork it ( https://github.com/hanami/hanami/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
In addition to contributing code, you can help to triage issues. This can include reproducing bug reports, or asking for vital information such as version numbers or reproduction instructions. If you would like to start triaging issues, one easy way to get started is to subscribe to hanami on CodeTriage.
To run all test suite:
$ bundle exec rake
To run all the unit tests:
$ bundle exec rspec spec/unit
To run all the integration tests:
$ bundle exec rspec spec/integration
To run a single test:
$ bundle exec rspec path/to/spec.rb
- Ruby >= 3.0
- Bundler
- Node.js (MacOS)
Hanami uses Semantic Versioning 2.0.0
Copyright © 2014-2022 Hanami Team – Released under MIT License.