- ui: Dioxus WASM app with dataset sidebar, SQL editor (Ctrl+Enter), results table - ui: dynamic API base URL (same-origin for nginx, port-based for local dev) - gateway: CORS enabled for cross-origin requests - nginx: lakehouse.devop.live proxies UI (:3300) + API (:3100) on same origin - justfile: ui-build, ui-serve, sidecar, up commands added Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
51 lines
1.0 KiB
Makefile
51 lines
1.0 KiB
Makefile
# Lakehouse task runner
|
|
|
|
default:
|
|
@just --list
|
|
|
|
# Build all crates
|
|
build:
|
|
cargo build --workspace
|
|
|
|
# Run all tests
|
|
test:
|
|
cargo test --workspace
|
|
|
|
# Run gateway
|
|
run:
|
|
cargo run --bin gateway
|
|
|
|
# Build UI (WASM)
|
|
ui-build:
|
|
cd crates/ui && dx build --platform web
|
|
|
|
# Serve UI (dev)
|
|
ui-serve:
|
|
cd target/dx/ui/debug/web/public && python3 -m http.server 3300 --bind 0.0.0.0
|
|
|
|
# Start sidecar
|
|
sidecar:
|
|
cd sidecar && uvicorn sidecar.main:app --host 0.0.0.0 --port 3200
|
|
|
|
# Start everything (gateway + sidecar + UI)
|
|
up:
|
|
@echo "Starting gateway on :3100..."
|
|
@cargo run --bin gateway &
|
|
@echo "Starting sidecar on :3200..."
|
|
@cd sidecar && uvicorn sidecar.main:app --host 0.0.0.0 --port 3200 &
|
|
@echo "Starting UI on :3300..."
|
|
@cd target/dx/ui/debug/web/public && python3 -m http.server 3300 --bind 0.0.0.0 &
|
|
@echo "All services started."
|
|
|
|
# Check without building
|
|
check:
|
|
cargo check --workspace
|
|
|
|
# Format all code
|
|
fmt:
|
|
cargo fmt --all
|
|
|
|
# Lint
|
|
clippy:
|
|
cargo clippy --workspace -- -D warnings
|