Setup your database

After your database variables setup is done you need to create the database and run the migrations before being able to launch a development server.

In your terminal, enter:

$ bundle exec hanami db prepare

To setup your test environment database, enter:

$ HANAMI_ENV=test bundle exec hanami db prepare

Sequel plugins

Hanami models use ROM as a low-level backend. This means that you can easily use any Sequel plugins in your app.
For this you need to define a gateway block in your model configuration, add the extension by calling extension on gateway.connection and pass the extension name in: