nvidia-oc/run
2026-03-06 02:14:21 -08:00

22 lines
1 KiB
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${SCRIPT_DIR}"
# Source bash-templates orchestrator (brings in colors + common automatically)
# shellcheck source=/dev/null
source "${HOME}/Code/@packages/@ts/@cli/bash-templates/lib/orchestrator.sh"
# ── Register services ────────────────────────────────────────────────────────
register_service "backend" "uv run python -m uvicorn nvidia_oc.api.main:app --host 0.0.0.0 --port 9421 --reload"
register_service "frontend" "pnpm dev" "${SCRIPT_DIR}/frontend"
# ── Start ─────────────────────────────────────────────────────────────────────
log_success "Starting NVIDIA OC..."
start_all_services
log_info "Backend: http://localhost:9421"
log_info "Frontend: http://localhost:3420"
wait_for_exit