Build the binary
Use a Pisces source checkout with Rust 1.95 or newer and Node.js 24 or newer. Build the editor before compiling Rust so the executable can embed the admin assets.
npm ci --prefix editor
npm run build --prefix editor
cargo build --locked
export PATH="$PWD/target/debug:$PATH"
If the public site works but the admin assets are missing, rebuild the editor and then the binary. See Hosting for a release build and TLS setup.
Start a scratch site
Set a fresh data directory so these examples work independently of any existing site. Keep the same environment in every terminal that runs the CLI against this instance.
export PISCES_DATA_DIR="$(mktemp -d)"
pisces site-create journal --title "Field Journal" --hostname 127.0.0.1
pisces serve --local-edit
Open 127.0.0.1:8040/admin/ and select Field Journal. The public site is at 127.0.0.1:8040. The local editing shortcut grants operator access on loopback. Use it for this scratch instance.
Publish a post
- Choose New post and enter First field note. Add a heading and paragraph in Gutenberg, then choose Save changes while Visibility is set to Draft.
- Open the public site in another tab and confirm the draft stays private.
- Set Visibility to Published and save changes. Open the public URL and check the title, blocks, and layout. Make a second edit to see content revisions.
- Open Design to explore theme templates and global styles. Open Plugins to see the selected site’s installed packages.
The two extension examples can use this same journal site. Keep the server running while installing from another terminal, and point that terminal at the same PISCES_DATA_DIR.
Verify the source checkout
cargo test --locked
npm test --prefix editor
The storage tests can use a disposable PostgreSQL database via PISCES_TEST_DATABASE_URL. Browser checks in the source tree use Chrome or Chromium and accept a custom executable via PISCES_CHROMIUM.
Try the theme example to change the article layout or the plugin example to add a block to the inserter.