Development & Contributing
This guide covers building, running, testing, and packaging CatBee Container Studio locally from source.
Prerequisites
- Node.js
v22or newer (CI validates on Node24and26; release builds use Node26) - npm
v10or newer - Docker Engine / Docker Desktop (optional if using CatBee's built-in engine)
Project Layout
catbee-container-studio/
├── frontend/ # Angular renderer application
│ └── src/
│ ├── app/features/ # containers, images, volumes, networks, logs, settings
│ └── styles/ # SCSS tokens, light/dark themes, mixins
├── src/ # Electron main process & preload bridge
│ ├── constants.docker.ts # Runtime IDs, ports, default CLI & K8s versions
│ ├── ipc/ # Typed IPC channels & handlers (docker, engine, k8s, app)
│ ├── main/
│ │ ├── app/ # Menu, updater, protocol, quit confirmation
│ │ ├── docker/ # Dockerode services, context manager, embedded drivers
│ │ └── k8s/ # kind cluster lifecycle manager
│ └── preload.ts # Context bridge API
├── scripts/ # Changelog, version bump, reset:env, CI engine tests
├── tests/ # Vitest backend unit tests
├── electron-builder.config.mjs # Windows, macOS, Linux packaging config
└── vitest.config.mts # Vitest test configuration
Setup & Local Development
- Clone and install dependencies:
git clone https://github.com/catbee-technologies/catbee-container-studio.git
cd catbee-container-studio
npm install
cd frontend && npm install && cd ..
- Start Angular dev server + Electron concurrently:
npm run app:serve
- Launches the Angular dev server on
http://localhost:4281. - Waits for the dev server and opens Electron with hot reloading.
Testing & Code Quality
Unit Tests (Vitest)
# Type-check tests and run Vitest suite
npm test
# Watch mode
npm run test:watch
# Coverage report
npm run test:coverage
Linting & Formatting
# Lint Electron main process & tests
npm run lint
npm run lint:fix
# Lint Angular frontend
npm run lint:ui
npm run lint:ui:fix
# Lint everything
npm run lint:all
Resetting Local Dev Environment
To test fresh-install flows cleanly using the same teardown pipeline as production:
npm run build
npm run reset:env -- --dry-run
# Destructive: removes built-in engine, data, and app settings
npm run reset:env
Production Packaging
# Compile frontend and main process bundles
npm run package
# Package for current OS
npm run dist
# Platform-specific targets (output to build/)
npm run dist:win
npm run dist:win:store
npm run dist:mac
npm run dist:linux
License
MIT © Catbee Technologies. See the License page for the full license text.