Getting Started¶
Prerequisites¶
- Python 3.12+ with uv
- Bun 1.3+ for frontend package management
- PostgreSQL with:
rhacs_manager(application DB, read-write)central_active(StackRox DB, read-only)- just (recommended)
Install Dependencies¶
git clone <repo-url> rhacs-manager
cd rhacs-manager
just install
# or manually:
uv --directory backend sync
cd frontend && bun install
Create App Database¶
Run migrations:
just migrate
# or manually:
APP_DB_URL="postgresql+asyncpg://postgres@localhost/rhacs_manager" \
uv --directory backend run alembic upgrade head
Start Development¶
just dev starts backend (:8000) and frontend (:5173) with hot reload.
In user mode, namespace scopes are translated into DEV_USER_NAMESPACES. Use * to simulate a non-sec-team user who can see all namespaces.
Verify Changes¶
just check
# individual commands:
just test # backend tests
just lint # frontend lint
just build-frontend # frontend type-check + build
Warning
Backend tests and frontend build must pass before merging.