#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")" && pwd)"
(cd "$ROOT/mengyaconnect-backend" && go run .) &
BE_PID=$!
trap 'kill $BE_PID 2>/dev/null' EXIT INT TERM
cd "$ROOT/mengyaconnect-frontend"
npm run dev
