#!/bin/bash # Start frontend development server set -e cd "$(dirname "$0")/../../frontend" echo "Starting frontend server..." if [ ! -f ".env" ]; then echo "Creating .env from .env.example..." cp .env.example .env fi # Install dependencies if needed if [ ! -d "node_modules" ]; then echo "Installing dependencies..." npm install fi # Start the server echo "Starting React development server..." npm start