Create App

Use when creating a new Hanami 2.x application — generate with `hanami new [name] --database=postgres`, configure environment detection via HANAMI_ENV (development/test/production), establish database connectivity via DATABASE_URL, install dependencies with `bundle install`, set up the database with `hanami db create && hanami db migrate && hanami db version`, and run the development server with `hanami dev`. Generates the full directory layout, config/app.rb, config/routes.rb, config/settings.rb, db/migrate/, slices/, and a config.ru. Use when starting a Hanami project from scratch, scaffolding a new app, or understanding project structure.

igmarin aa4f6b6 4.3 KB Updated

File contents

igmarin/hanakai-yaku/tree/main/skills/cli/create-app commit aa4f6b621a

Frequently asked questions

npx skillmds@latest add igmarin/create-app