Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
Shell
12345678910111213141516171819202122232425262728293031323334#!/usr/bin/env bashset -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"ROOT_DIR="$(dirname "$SCRIPT_DIR")"
cleanup() { echo "Shutting down..." kill $API_PID $WEB_PID 2>/dev/null || true wait $API_PID $WEB_PID 2>/dev/null || true}trap cleanup EXIT INT TERM
# Start APIecho "Starting API server on :3001..."cd "$ROOT_DIR/api"cp -n .env.example .env 2>/dev/null || truecargo run &API_PID=$!
# Start frontendecho "Starting frontend on :5173..."cd "$ROOT_DIR/web"npm run dev &WEB_PID=$!
echo "Ayos dev servers starting..."echo " API: http://localhost:3001"echo " Frontend: http://localhost:5173"echo ""echo "Press Ctrl+C to stop."
wait