fszontagh 4c4abccc92 feat(functions): cron, database events, and a job queue 1 month ago
..
Dockerfile fbc2ec1e9b feat(webui): relations - browse them, and follow them to the related data 1 month ago
README.md fbc2ec1e9b feat(webui): relations - browse them, and follow them to the related data 1 month ago
entrypoint.sh fbc2ec1e9b feat(webui): relations - browse them, and follow them to the related data 1 month ago
run-tests.sh 4c4abccc92 feat(functions): cron, database events, and a job queue 1 month ago

README.md

Local dev stack (Docker)

Runs smartbotic-database + smartbotic-vectorapi from release .debs in a Debian 13 container, so the web UI can be developed against a real backend.

Why this exists: the Void dev host cannot build the stack natively any more. Void moved to protobuf 35, which removed google/protobuf/map_field_inl.h; the database's generated protos include it, so libsmartbotic-db-client no longer compiles or links there. Debian 13 pins the versions the code expects.

# 1. put the .debs here (server from dist/debian13, DB + client from the deb repo)
mkdir -p debs && cp ../../dist/debian13/smartbotic-vectorapi_*_amd64.deb \
    "$DEB_REPO_DIR"/dist/smartbotic-database_2.11.3-1_amd64.deb \
    "$DEB_REPO_DIR"/dist/libsmartbotic-db-client_2.11.3-1_amd64.deb debs/

# 2. build and run; the admin key is whatever you seed here
docker build -t svapi-devstack .
docker run -d --name svapi-dev -p 8080:8080 -e SMARTBOTIC_VECTORAPI_KEY=dev svapi-devstack

# 3. the Vite dev server already proxies /api and /ui to localhost:8080
cd ../../webui && npm run dev      # http://localhost:3000

docker logs svapi-dev shows both services. The container has no systemd, so the entrypoint starts the database, waits for :9004, then execs the API; systemctl is a no-op shim purely so the packages' postinst scripts configure cleanly.