No description
  • Elixir 87.6%
  • Python 6.7%
  • HTML 2.1%
  • Dockerfile 2.1%
  • Shell 1.3%
  • Other 0.2%
Find a file
beamologist a93a8b7836
All checks were successful
c4 model / c4-model-1 (push) Successful in 2s
c4 model / c4-model (push) Successful in 0s
Merge PR 2: the README without the GitHub Sponsors badge
2026-11-24 01:10:40 +01:00
.github/workflows ci: a guarded job calls a pinned copy, so no uses: names a repository the forge must fetch (images-to-forge, macula-io/martha#601) 2026-11-22 02:04:42 +01:00
apps deps: the base library is macula 16 2026-10-22 03:03:40 +02:00
architecture c4_model: a phoenix model whose deployment claim this fleet supports 2026-10-23 04:31:37 +02:00
assets c4_model: a phoenix model whose deployment claim this fleet supports 2026-10-23 04:31:37 +02:00
config 0.2.0: wire 1.0, and the facade opens its own store 2026-10-20 13:59:53 +02:00
rel fix: the release reads the fleet's MCL_COOKIE, not RELEASE_COOKIE 2026-09-25 10:07:55 +02:00
scripts fix: the image-gate script must be executable in git 2026-09-25 09:56:48 +02:00
.credo.exs feat: the walking skeleton -- the bookclub, for Elixir students 2026-09-25 07:55:56 +02:00
.dialyzer_ignore.exs 0.2.0: wire 1.0, and the facade opens its own store 2026-10-20 13:59:53 +02:00
.formatter.exs feat: the Elixir desks, the LiveView admin, and the mesh face 2026-09-25 09:30:40 +02:00
.gitignore chore: untrack the next-ls editor log; ignore .elixir-tools 2026-10-02 10:33:21 +02:00
.tool-versions feat: the walking skeleton -- the bookclub, for Elixir students 2026-09-25 07:55:56 +02:00
CHANGELOG.md deps: the base library is macula 16 2026-10-22 03:03:40 +02:00
Containerfile build: CI + Containerfile on the team images, and a release that boots 2026-09-25 09:42:22 +02:00
LICENSE feat: the walking skeleton -- the bookclub, for Elixir students 2026-09-25 07:55:56 +02:00
mix.exs 0.2.0: wire 1.0, and the facade opens its own store 2026-10-20 13:59:53 +02:00
README.md README: add the Buy Me a Coffee badge 2026-11-23 22:19:54 +00:00
SECURITY.md SECURITY.md: response times, attachment and identity rules, drills (macula-io/macula#174) 2026-10-31 02:59:00 +01:00

mcl-bookclub-phoenix

Buy Me a Coffee

The Bookclub-on-Mesh, for Elixir students: the same domain, the same contract, in Elixir with a Phoenix LiveView admin.

This is the drop-in Elixir twin of mcl-bookclub: the same commands, events, guards, stream ids, facts topics and procedure names — a second club on the mesh, indistinguishable from the first except by node identity. The contract is shared; the club is a payload parameter (club_id and club_name in every fact), never a namespace. One topic set serves a thousand clubs.

Separation of business logic and presentation

The spine of this repository, by design and by test: the three division apps (host_bookclub, project_bookclub, query_bookclub) have no Phoenix in their deps — business logic never imports presentation. The LiveView app contains only presentation, and calls the divisions through the same entry points the mesh uses. A view that can't reach a guard is a view that can't violate one.

Layout

apps/host_bookclub/             CMD: commands, events, aggregates (Elixir structs)
apps/project_bookclub/          PRJ: events -> sqlite, idempotent writes + the pubsub seam
apps/query_bookclub/            QRY: pure query modules
apps/mcl_bookclub_phoenix/      the facade (the :mcl_om_service behaviour + mesh emitters)
apps/mcl_bookclub_phoenix_web/  the LiveView admin (presentation only)

Status: full domain + LiveView admin

Every desk the Erlang twin has (initiate/archive/plan_party, member register/unregister, book procure/retire, reading start/finish, the plan_party policy), every projection (clubs/members/books/readings), every query desk, the three mesh emitters, the get_bookclub_by_id capability, and the LiveView admin console -- task buttons dispatch the divisions' entry points, lookups call the query desks, and the projection pubsub seam feeds the live feed. CI and the image (.github/workflows/ci.yml, Containerfile) are in place; what remains is the fleet rollout as the second club.

Running it

mix deps.get
mix compile --warnings-as-errors
mix test
mix credo --strict
mix dialyzer

The runtime is pinned in .tool-versions (OTP 28.4.3, Elixir 1.18.4). The admin serves on MCL_HTTP_PORT (default 4000); build its JS first with mix esbuild mcl_bookclub_phoenix_web.

Architecture

The C4 model is in architecture/README.md, with its diagrams drawn by architecture/c4_diagrams.py into assets/. Change the script, run it (python3 architecture/c4_diagrams.py), and look at the result before committing.

mcl-bookclub-phoenix system context