@echo off REM Setup script for uv-based development environment on Windows echo 🚀 Setting up Northern Thailand Ping River Monitor with uv... REM Check if uv is installed uv --version >nul 2>&1 if %errorlevel% neq 0 ( echo ❌ uv is not installed. Please install it first: echo powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" exit /b 1 ) echo ✅ uv found uv --version REM Initialize uv project if not already initialized if not exist "uv.lock" ( echo 🔧 Initializing uv project... uv sync ) else ( echo 📦 Syncing dependencies with uv... uv sync ) REM Install pre-commit hooks echo 🎣 Installing pre-commit hooks... uv run pre-commit install REM Create .env file if it doesn't exist if not exist ".env" ( if exist ".env.example" ( echo 📝 Creating .env file from template... copy .env.example .env echo ⚠️ Please edit .env file with your configuration ) ) echo ✅ Setup complete! echo. echo 📚 Quick start commands: echo make install-dev # Install all dependencies echo make run-test # Run a test cycle echo make run-api # Start the web API echo make test # Run tests echo make lint # Check code quality echo. echo 🎉 Happy monitoring!