Skip to content

Quickstart

Terminal window
make proto-tools
make proto
make build
CHRONACTA_DATA_DIR=./data ./bin/chronacta-server

In another terminal:

Terminal window
./bin/chronacta health
./bin/chronacta append -stream orders-1 -type OrderCreated -data '{"order_id":"1"}' -expected-version -2
./bin/chronacta read -stream orders-1 -from 1
./bin/chronacta read-all -from 1
./bin/chronacta verify
Terminal window
./bin/chronacta schema register -name order-created -version 1 \
-file order-created.schema.json -compatibility none
./bin/chronacta append -stream orders-2 -type OrderCreated \
-data '{"order_id":"2"}' \
-schema-name order-created -schema-version 1 \
-expected-version -2
Terminal window
./bin/chronacta subscription create -id orders -stream orders-1 -consumer worker-pool -from 1
./bin/chronacta subscription pull -id orders
./bin/chronacta subscription ack -id orders -position 1
Terminal window
./bin/chronacta projection create -name orders-count -runtime builtin -program count -source-stream orders-1
./bin/chronacta projection rebuild -name orders-count
./bin/chronacta projection result -name orders-count

Or run the packaged examples against a live server:

Terminal window
./bin/chronacta-example-basic
./bin/chronacta-example-projection
./bin/chronacta-example-export-import
./bin/chronacta-example-sdk

See Go SDK for client usage, TLS, auth, and pkg/client/resilience reconnect (Connect, SubscribeLive, RunDurableWorker).