sailfork / t3code-github / .repos/ alchemy-effect/ demos/ effect-prezzy/ chapters

.repos/alchemy-effect/demos/effect-prezzy/chapters/README.md

Shorty, chapter by chapter

Each folder is the complete app at the end of one chapter of the talk (see ../CONTENT.md). Consecutive folders differ by exactly that chapter's change, so the recording types the diff between them.

ChapterWhat it adds
00-websiteCloudflare.Website.Vite dashboard shell
01-apiEffectful Worker serving an HttpApi; typed client in the dashboard
02-d1D1 database with migrations; redirects
03-teststest/api.test.ts: deploy → assert → destroy
04-durable-objectsLinkRoom Durable Object, hibernatable WebSockets, live counts
05-queuesClicks queue: redirects enqueue, a consumer counts in batches
06-layers-neonLinks service + LinksSql; storage Layers for D1 and Neon via Hyperdrive
07-telemetrySpans, Axiom datasets and ingest token, Axiom.Telemetry
08-dashboardAxiom.Dashboard as code

Run a chapter from its folder, with the demo's binaries on PATH:

export PATH="$PWD/../../node_modules/.bin:$PATH" ALCHEMY_PROFILE=testing
alchemy dev    # API on localhost:1337, dashboard on localhost:5173
pnpm test      # deploys test_$USER, runs the tests, destroys it

Dependencies come from demos/effect-prezzy/package.json. Type-check a chapter from the repo root with pnpm exec tsc -b demos/effect-prezzy/chapters/<folder>.