Spaces:
Sleeping
Sleeping
| # SAAP Frontend Startup Script | |
| # Starts the Vue.js + Vite development server | |
| set -e # Exit on error | |
| echo "π SAAP Frontend Startup" | |
| echo "========================" | |
| # Navigate to script directory | |
| cd "$(dirname "$0")" | |
| # Navigate to frontend directory | |
| cd frontend | |
| # Check if package.json exists | |
| if [ ! -f "package.json" ]; then | |
| echo "β Error: frontend/package.json not found!" | |
| exit 1 | |
| fi | |
| # Install dependencies if node_modules doesn't exist | |
| if [ ! -d "node_modules" ]; then | |
| echo "π¦ Installing frontend dependencies..." | |
| npm install | |
| echo "β Dependencies installed successfully!" | |
| else | |
| echo "β Dependencies already installed (node_modules found)" | |
| fi | |
| echo "" | |
| echo "π Starting SAAP Frontend Development Server..." | |
| echo " - Vue 3 + Vite" | |
| echo " - Hot Module Replacement (HMR) enabled" | |
| echo "" | |
| echo "π Frontend will be available at: http://localhost:5173" | |
| echo "" | |
| echo "Press Ctrl+C to stop the server" | |
| echo "" | |
| # Start the frontend dev server | |
| npm run dev | |