Hanami

简约的 web。Hanami 是一个 Ruby 现代 Web 框架。「The web, with simplicity. Hanami is a modern web framework for Ruby.」

Github星跟踪图

Hanami :cherry_blossom:

The web, with simplicity.

Frameworks

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:

These components are designed to be used independently or together in a Hanami application.

Status

Gem Version
TravisCI
Test Coverage
Depfu
Inline Docs

Installation

Hanami supports Ruby (MRI) 2.3+

gem install hanami

Usage

hanami new bookshelf
cd bookshelf && bundle
bundle exec hanami server # visit http://localhost:2300

Please follow along with the Getting Started guide.

Donations

You can give back to Open Source, by supporting Hanami development via a donation. :green_heart:

Supporters

Contact

Community

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.

Contributing Open Source Helpers

  1. Fork it ( https://github.com/hanami/hanami/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. 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.

How To Use Hanami HEAD

If you want to test Hanami's HEAD to try a new feature or to test a bug fix, here's how to do:

git clone https://github.com/hanami/hanami.git
cd hanami && bundle
bundle exec hanami new bookshelf --hanami-head
cd bookshelf
vim Gemfile # edit with: gem 'hanami', path: '..'
bundle

Development Requirements

  • Ruby 2.3+ / JRuby 9.1.5.0+
  • Bundler
  • PhantomJS
  • Node.js (MacOS)

Testing

In order to simulate installed gems on developers' computers, the build installs
all the gems locally in vendor/cache, including hanami code from lib/.

Before running a test, please make sure you have a fresh version of the code:

./script/setup
bundle exec rspec spec/path/to/file_spec.rb

To run all the tests, please use:

./script/ci

Versioning

Hanami uses Semantic Versioning 2.0.0

Released under MIT License.

This project was formerly known as Lotus (lotusrb).

Copyright © 2014-2019 Luca Guidi.

主要指标

概览
名称与所有者hanami/hanami
主编程语言Ruby
编程语言Ruby (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2013-08-09 15:24:44
推送于2025-07-04 21:48:45
最后一次提交
发布数74
最新版本名称v2.2.1 (发布于 2024-11-12 23:05:25)
第一版名称v0.1.0 (发布于 2014-06-23 16:13:14)
用户参与
星数6.3k
关注者数174
派生数542
提交数2.1k
已启用问题?
问题数579
打开的问题数29
拉请求数747
打开的拉请求数12
关闭的拉请求数168
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?