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.ymlConventions
- New capabilities get their own top-level folder, e.g.
integrations/<lakehouse>/for data-lake connectors oragent/for the AI service. Each folder has a README and, if it runs, a service indocker-compose.yml. - Isolation: containers, volumes, networks and images are prefixed
cubebi-; ports are in the1845xrange on127.0.0.1; the network stays on10.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 tomainthat changesdocs/redeploys the site automatically.