#!/bin/bash # Function to handle script termination cleanup() { echo "Shutting down..." kill $(jobs -p) exit } trap cleanup SIGINT SIGTERM echo "Starting Mindforge.API..." (cd Mindforge.API && dotnet run) & echo "Starting Mindforge.Web..." (cd Mindforge.Web && npm run dev) & echo "Both projects are running. Press Ctrl+C to stop both." wait