Documentation
¶
Overview ¶
Command backoffice is a minimal example of the battery/admin entity CRUD admin rendered through a UI host: a few entities, a (demo-grade) login, and admin.New(...) generating the whole back-office with defaults.
The admin screens hydrate with runtime.js — the list is a DataTable island (paginate without a reload), delete is a data-fui-confirm button, and forms are server-rendered. There is no bespoke JavaScript anywhere in this app.
The auth here is a deliberately tiny demo stand-in (a signed-cookie-free session) so the example stays focused on the admin. Real apps wire battery/auth and pass admin.Config.Authorize a role check.
Click to show internal directories.
Click to hide internal directories.