Skip to content

Latest commit

 

History

History

Folders and files

Examples

Compiled example programs used by the documentation. CI builds and vets everything here, so code shown in the docs can't silently break. Doc pages copy tagged regions (// region: name … // endregion) from these files. See the documentation guide §7.

Most examples show one feature. tracker is the reference app: an issue tracker with projects, members and roles, issues with labels, comments, files and their history, search, emails from queue jobs, a weekday digest, an admin and a JSON API, tested on every database. tutorial is the app the tutorial builds. saas is a whole app, made with anetos new and anetos make:auth: accounts with a password, Google or GitHub, a welcome email from a queue job, a pub/sub listener and a scheduled task, in one binary that also runs split by role (run --only=…), with a test that runs it that way. teams is a JSON API where users have roles in teams and across them (auth/rbac). assistant is a help center with an AI assistant: stored conversations, answers streamed with htmx, replies from queue jobs and daily budgets. i18n speaks English and Bangla: catalogs, plurals, dates, prices and relative times, a language switcher, and validation messages in the visitor's language. admin is a shop's back office made with the admin interface: products and categories, roles for administrators and editors, and every change in the audit log. bookmarks is the JSON API that Tutorial: build an API builds, made with anetos new --stack=api, make:auth and make:crud: bookmarks that are each user's, tokens limited to reading, an action of its own, and its OpenAPI description (openapi.json).