#!/bin/bash

# 明树数据 React 项目启动脚本
# Bridata React Project Startup Script

cd "$(dirname "$0")"

echo "=========================================="
echo "  明树数据 (Bridata) React 项目"
echo "=========================================="
echo ""

# 检查是否已安装依赖
if [ ! -d "node_modules" ]; then
    echo "📦 正在安装依赖..."
    npm install
    echo ""
fi

echo "🚀 正在启动开发服务器..."
echo ""
echo "访问地址: http://localhost:5173/"
echo ""
echo "按 Ctrl+C 停止服务器"
echo "=========================================="
echo ""

npm run dev
