-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLAUNCH.command
More file actions
executable file
·37 lines (29 loc) · 851 Bytes
/
Copy pathLAUNCH.command
File metadata and controls
executable file
·37 lines (29 loc) · 851 Bytes
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
#!/bin/bash
cd "$(dirname "$0")"
echo "============================================"
echo " AITuberKit - Starting..."
echo "============================================"
echo ""
if ! command -v npm &> /dev/null; then
echo "[ERROR] npm is not installed or not in PATH."
echo "Please install Node.js from https://nodejs.org/"
read -p "Press Enter to close..."
exit 1
fi
if [ ! -d "node_modules" ]; then
echo "Installing dependencies..."
npm install
if [ $? -ne 0 ]; then
echo "[ERROR] npm install failed."
read -p "Press Enter to close..."
exit 1
fi
echo ""
fi
echo "Starting development server..."
echo "Press Ctrl+C to stop the server."
echo ""
# Open browser automatically after server starts
(sleep 3 && open http://localhost:3000) &
npm run dev
read -p "Press Enter to close..."