Rand Stats

MVC::Keayl

zef:gdonald

MVC::Keayl

A Model-View-Controller web framework for Raku.

MVC::Keayl is the web layer. The model layer is delegated to ORM::ActiveRecord and default view rendering to Template::HAML; both are pluggable. The HTTP server is reached through an abstract adapter, with the default adapter built on Cro.

Installation

zef install MVC::Keayl

Getting started

Scaffold a new application, then boot it:

keayl new blog
cd blog
bin/dev

keayl new writes a starter layout: config/application.json, config/application.raku, config/routes.raku with a root route, a HomeController rendering through an application layout, an assets/ directory served by the static middleware, bin/server/bin/dev/bin/test scripts, a browser spec for the home page, a META6.json, a health-check endpoint at /up, a PWA manifest and service worker, and static exception pages.

bin/dev serves the app over HTTP with the Cro adapter, defaulting to 127.0.0.1:3000. Other commands include keayl routes, keayl console, and keayl generate. See the CLI docs for the full command list.

Features

Documentation

Full documentation lives at gdonald.github.io/MVC-Keayl.

License

Artistic-2.0. See LICENSE.