The web, with simplicity. https://github.com/hanami/hanami
Go to file
Tim Riley c963882a3c
Add lib/ to $LOAD_PATH before loading app file (#1251)
This makes it possible to require files from lib/ at conventional spot at the top of the file, rather than inside the body of the app class.
2022-11-11 07:06:58 +11:00
.github Update FUNDING.yml 2022-03-18 10:55:50 +01:00
lib Add lib/ to $LOAD_PATH before loading app file (#1251) 2022-11-11 07:06:58 +11:00
script Merge branch 'develop' into unstable 2021-01-18 09:26:40 +01:00
spec Add lib/ to $LOAD_PATH before loading app file (#1251) 2022-11-11 07:06:58 +11:00
vendor Vendor PhantomJS 2.1.1 in our repository 2016-10-20 12:13:06 +02:00
.gitignore Prepare for v1.1.0.beta2 2017-10-03 15:19:13 +02:00
.rspec Restart 2016-09-22 17:48:58 +02:00
.rubocop.yml Update API docs for 2.0.0 (#1229) 2022-11-01 16:17:53 +11:00
.yardopts Update API docs for 2.0.0 (#1229) 2022-11-01 16:17:53 +11:00
CHANGELOG.md Prepare for v2.0.0.rc1 2022-11-07 11:58:28 +01:00
CODE_OF_CONDUCT.md Add email address to CoC. Closes #929 2018-05-07 17:26:16 +02:00
CONTRIBUTING.md Lotus => Hanami 2016-01-20 17:06:26 +01:00
FEATURES.md Prepare for v2.0.0.beta1 2022-07-18 11:07:55 +02:00
Gemfile Use released dry-logger 2022-11-07 22:04:29 +01:00
LICENSE.md GitHub Actions (#1090) 2021-01-15 21:17:42 +01:00
README.md Update README.md 2022-07-01 10:31:14 +02:00
Rakefile Remove old integration tests (#1207) 2022-09-01 06:08:08 +02:00
hanami.gemspec Relax rc deps in gemspec 2022-11-08 12:49:59 +01:00

README.md

Hanami 🌸

The web, with simplicity.

Version

This branch contains the code for hanami 2.0.x.

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 CI Test Coverage Depfu Inline Docs

Installation

Hanami supports Ruby (MRI) 3.0+

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 GitHub Sponsors.

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

Copyright © 2014-2022 Hanami Team Released under MIT License.