This guide describes how to set up the Query Pilot studio repository for local development.
Ensure you have the following installed:
- Node.js: v20 or later
- pnpm:
npm install -g pnpm - Rust: Stable toolchain (
rustup update stable) - Tauri CLI:
cargo install tauri-cli(optional, as we usecargo tauri)
The project uses a Makefile to simplify common commands.
# Install frontend dependencies
pnpm install
# Install backend dependencies (automatically handled by cargo)This command starts both the React frontend and the Rust/Tauri backend in development mode with hot-reloading.
make devThe application window should appear once the Rust binary finishes compiling.
# Run ESLint
pnpm lint
# Run Type Checking
pnpm typecheck
# Run Unit Tests (Vitest)
pnpm test:unit# Run Clippy (Linter)
cd src-tauri
cargo clippy
# Run Tests
make test-backendsrc/: React Frontend (Vite)src-tauri/: Rust Backend (Tauri)src/adapters/: Frontend SQL Adapters (The "Brain")src-tauri/src/adapters/: Backend Database Adapters (The "Muscle")
- Frontend:
pnpm add <package> - Backend:
cd src-tauri && cargo add <crate>
"Command not found: make"
If you are on Windows, you may need to install make via Chocolatey (choco install make) or use the raw commands found in the Makefile.