Skip to content

Repository layout ​

CubeBI is a monorepo. Each top-level folder is one deployable part or one area of work.

cube/            Cube Core config (cube.js) and semantic model (model/cubes, model/views)
db/init/         Postgres first-run scripts: roles, databases, sample warehouse, app schema
web/             BI web app: Express server + React client, built into the cubebi-web image
scripts/         Operational scripts (e.g. seed-demo.sh)
docs/            This documentation site (VitePress), deployed to Cloudflare Pages
docker-compose.yml

Conventions ​

  • New capabilities get their own top-level folder, e.g. integrations/<lakehouse>/ for data-lake connectors or agent/ for the AI service. Each folder has a README and, if it runs, a service in docker-compose.yml.
  • Isolation: containers, volumes, networks and images are prefixed cubebi-; ports are in the 1845x range on 127.0.0.1; the network stays on 10.246.10.0/24.
  • Secrets live only in .env, which is git-ignored. Add new keys to .env.example, without values.
  • Docs go in docs/. A push to main that changes docs/ redeploys the site automatically.