1. Development
-
clojure -X:dev
: start development server by typing(start)
. See localhost:8085 -
clojure -M:test
: run tests -
clojure -M:outdated
: find outdated dependencies -
clojure -X:uberjar
: compile to a single.jar
for production -
clojure -M:gen target/openapi.json target/clients/client.py py
: generate Python client -
clojure -M:gen target/openapi.json target/clients/client.js js
: generate JavaScript client -
clojure -M:nrepl
: start nREPL server (for Clojure MCP)
1.1. OpenAPI Support
-
See playground at localhost:8085/api/v1/docs/index.html#/
-
See JSON at localhost:8085/api/v1/openapi.json
1.2. XTDB Inspector
Make sure that XTDB_INSPECTOR_URI_PREFIX
is set to /_inspector
if you want to use the web UI to inspect the database.
export XTDB_INSPECTOR_URI_PREFIX=/_inspector
It will be visible at localhost:8085/_inspector/attr.