Write one file. Get an app.
Declare your models and routes in a small Rhai script. dbb1 creates the database, a JSON API and an admin UI, and serves it at its own subdomain.
model Task #{
title: "string! max=200",
done: false,
status: ["todo", "doing", "done"],
};
expose(Task);
get("/", || {
let open = Task.count(#{ done: false });
`<h1>${open} things to do</h1>`
});
post("/tasks", |body| Task.create(body));From zero to deployed
curl -fsSL https://apps.dbb1.dev/install.sh | sh # install the CLI dbb1 login # approve in the browser dbb1 apps init # writes app.rhai dbb1 apps deploy # → https://<name>.apps.dbb1.dev