Skip to content

Multi-tenant e2e

Path:

example/barq_multitenant_e2e

This example launches the real sync server, creates tenants, mints signed JWTs, and drives native clients.

  • Tenant A device 2 downloads what Tenant A device 1 wrote.
  • Tenant B on the same partition name sees no Tenant A data.
  • Tenant data is stored in separate server subtrees.
  • Server files can be encrypted at rest per tenant.
Terminal window
cmake -S core -B core/cmake-build-debug -DBARQ_BUILD_SERVER=ON
cmake --build core/cmake-build-debug --target BarqSyncServer
cmake -S example/barq_multitenant_e2e -B example/barq_multitenant_e2e/build \
-DBARQ_NATIVE_SOURCE_DIR=$(pwd)/native \
-DBARQ_CORE_SOURCE_DIR=$(pwd)/core
cmake --build example/barq_multitenant_e2e/build --target barq_mt_e2e
Terminal window
./example/barq_multitenant_e2e/run_e2e.sh