Spaces:
Sleeping
Sleeping
File size: 1,009 Bytes
4343907 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
#!/bin/bash
# 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
|