#!/bin/bash # CSP Adventure Launcher 🚀 # Usage: ./start_adventure.sh echo "🌲 Loading CSP Minecraft World..." if ! command -v npm &> /dev/null; then echo "❌ Error: npm is not installed. Please install Node.js first." exit 1 fi echo "✨ Installing/Checking dependencies..." cd frontend || { echo "❌ Frontend directory not found!"; exit 1; } if [ ! -d "node_modules" ]; then npm install fi echo "⚔️ Starting the Adventure on http://localhost:3000" echo " (Press Ctrl+C to stop)" echo "" npm run dev