13 lines
269 B
Bash
13 lines
269 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
echo "🚀 Starting React Frontend..."
|
||
|
|
|
||
|
|
# 检查 node_modules
|
||
|
|
if [ ! -d "node_modules" ]; then
|
||
|
|
echo "📦 Installing dependencies..."
|
||
|
|
npm install
|
||
|
|
fi
|
||
|
|
|
||
|
|
# 启动开发服务器
|
||
|
|
echo "🎉 Starting development server on http://localhost:3000"
|
||
|
|
npm start
|