Skip to content

Getting started

The shortest path from a clone to a game in your browser, and then to the tests. It needs a Mac with Homebrew, Xcode (for the Swift suite), Node 22 and a JDK 21 (for the Kotlin suite). The whole stack with the game server, Postgres and online play is in Local development.

Get the code and the tools

git clone https://github.com/EdSancha/homefelt.git
cd homefelt
bin/setup # bun, xcodegen, Rust with the wasm32 target, wasm-bindgen-cli, Postgres 17

bin/setup can run any number of times; it only adds what is missing. It stops unless 8 GB of disk are free. Postgres is for the game server later; a solo game does not need it.

Play a solo game in the browser

bin/build-wasm # the Rust rules engine, compiled to WebAssembly
cd web && npm ci && npm run dev

Open http://localhost:5173, choose Canasta’s Play, pick Easy or Normal for the other seats, and Deal. You play seat 1; the computer plays the rest. The game is saved in the browser after every move, so a reload offers Continue game. More on the web app: Web app.

Run the tests

From the repository root:

bin/test # the Swift, Kotlin and Rust cores and the Wasm build, each against the spec
bin/test rust # or one platform: swift, kotlin, rust, wasm
bin/test site # the marketing site; bin/test docs for this docs site

Each platform runs its core’s tests against spec/, then the behaviour suite drives that platform’s CLI. Every suite must pass before a pull request.

Next