Developer Onboarding & Build Guide
Developer onboarding guide for dewDrive engineers. Covers Node.js 26+ runtime invariants, Cargo workspace compilation, pnpm, Nx orchestration, and test suites.
Welcome to the dewDrive engineering team. This guide details setup procedures, toolchain requirements, and common developer workflows across the monorepo.
1. Toolchain Prerequisites
dewDrive operates under strict zero-stub, high-performance platform invariants:
- Node.js:
v26.x+(Mandatory runtime per Workspace Rule 10; zero legacy polyfills) - Package Manager:
pnpm(v9.0.0+) - Rust Toolchain:
1.80+Stable (cargo,rustc,clippy,rustfmt) - Tauri Prerequisites:
- macOS: Xcode Command Line Tools (
xcode-select --install) - Windows: Microsoft Visual Studio C++ Build Tools with Windows 10/11 SDK
- Linux:
libwebkit2gtk-4.1-dev,build-essential,curl,wget,file,libxdo-dev,libssl-dev,libayatana-appindicator3-dev,librsvg2-dev
- macOS: Xcode Command Line Tools (
2. Initial Setup
Clone the repository:
git clone git@github.com:dewdrive/dewDrive.git cd dewDriveInstall Node.js dependencies:
pnpm install --frozen-lockfileGenerate TypeScript Models from Rust Types & Protobufs:
pnpm run ts-rs-gen(This builds Protobuf schemas and compiles shared models between the Rust daemons and TypeScript consoles).
Verify Toolchain Health:
cargo check --workspace pnpm run typecheck
3. Development Commands
All applications are orchestrated through Nx and Cargo workspaces:
Desktop Cockpits (Tauri 2.0)
# Ingestion Cockpit GUI
npx nx dev dewdrive
# Disaster Recovery Cockpit GUI (dewRewind)
npx nx dev dewrewind
Web Consoles & Port Matrix
# Web Reseller Console (Port 3000)
npx nx dev web-reseller-console
# Web Master Console (Port 3001)
npx nx dev web-master-console
# Web Owner Console (Port 3002)
npx nx dev web-owner-console
# Web Marketing & Docs (Port 3003)
npx nx dev web-marketing
Local Background Daemons (Rust)
# Multi-engine backup daemon
cargo run -p dewdrive-agent-backup-worker
# 24/7 Hardware & disk telemetry collector
cargo run -p dewdrive-agent-rmm
# Elevated Root/SYSTEM helper (VSS & smartctl)
cargo run -p dewdrive-agent-elevated-helper
# SQLite persistence daemon
cargo run -p dewdrive-agent-db-writer
# Auto-updater watchdog
cargo run -p dewdrive-agent-updater-monitor
4. Quality Contracts & Testing
Before committing code, verify full workspace compliance:
# Rust static analysis & formatting
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
# Monorepo typechecking
pnpm run typecheck
# Code formatting
pnpm run format