Add this line to your Hanami application's Gemfile:
gem "hanami-db"And then execute:
$ bundleMost of the test suite runs against SQLite and needs no setup. The specs that exercise Postgres and
MySQL need those servers running, which docker compose provides. This needs
Docker installed: Docker Desktop on macOS and
Windows, or Docker Engine with the Compose plugin on Linux.
$ docker compose up -d
$ bundle exec rspecLocally, Postgres listens on 5433 and MySQL on 3307, so they don't collide with any servers you
already have installed. CI runs Postgres on its default 5432 and MySQL on 3307. Override
POSTGRES_BASE_URL if your setup differs.
- Fork it
- 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 new Pull Request
See LICENSE file.