Based on Learn DBOS Java Tutorial.
If using nix flakes and direnv:
cp .envrc-example .envrc
$EDITOR .envrc
direnv allow
Otherwise install dependencies as described in dev-deps.txt
Run Postgres:
docker run -it --rm \
--name dbos-postgres \
-e POSTGRES_PASSWORD=dbos \
-p 5432:5432 \
postgres:17Run app
gradle runWhen the server is running, http://localhost:9000/serial and http://localhost:9000/parallel endpoints can be used to start workflows.