Skip to content

Samples

Reading is one thing; running real code is another. These samples live in the Cratis Samples repository — clone them, run them, and read along with the docs. They use the same library domain the tutorial and capstone build, so the code and the prose reinforce each other.

Terminal window
git clone https://github.com/cratis/Samples.git

Console quickstart

The smallest thing that exercises the whole event-sourcing loop — append events, project them into a read model, react — in a plain .NET console app. Open on GitHub → · backs the Chronicle tutorial.

ASP.NET Core quickstart

The same library domain wired into an ASP.NET Core web API — events and projections served over HTTP. Open on GitHub →

Library — a full-stack app

A complete vertical-slice application built with Arc + Chronicle + Components: Authors, Inventory, and Lending features, each a slice from command and events through projection to a React screen, with BDD specs and a docker-compose for Chronicle. Open on GitHub → · pairs with Build a full-stack feature.

  1. Run the quickstart alongside Get started to see the loop work.
  2. Follow the tutorial with the Console sample open — it builds the same domain one concept at a time.
  3. Explore the Library app with the capstone walkthrough to see how a real feature spans the whole stack.