@echo off echo ============================================ echo Sky Art Shop - Full System Verification echo ============================================ echo. echo [1/5] Checking if backend is running... powershell -Command "$proc = Get-Process | Where-Object {$_.ProcessName -like '*SkyArtShop*'}; if ($proc) { Write-Host ' ✓ Backend is running (PID: ' $proc.Id ')' -ForegroundColor Green } else { Write-Host ' ✗ Backend is NOT running' -ForegroundColor Red; Write-Host ' Start with: cd Admin; dotnet run --launch-profile https' -ForegroundColor Yellow }" echo. echo [2/5] Testing API endpoint... powershell -Command "try { $products = Invoke-RestMethod -Uri 'http://localhost:5000/api/products' -ErrorAction Stop; Write-Host ' ✓ API working - Found' $products.Count 'products' -ForegroundColor Green } catch { Write-Host ' ✗ API not responding: ' $_.Exception.Message -ForegroundColor Red }" echo. echo [3/5] Checking product images... powershell -Command "$products = Invoke-RestMethod -Uri 'http://localhost:5000/api/products' 2>$null; foreach ($p in $products) { if ($p.images.Count -gt 0) { Write-Host ' ✓' $p.name '- HAS' $p.images.Count 'images' -ForegroundColor Green } else { Write-Host ' ✗' $p.name '- NO images (upload needed)' -ForegroundColor Yellow } }" echo. echo [4/5] Testing image serving... powershell -Command "try { $img = Invoke-WebRequest -Uri 'http://localhost:5000/uploads/products/2dbdad6c-c4a6-4f60-a1ce-3ff3b88a13ae.jpg' -Method Head -ErrorAction Stop; Write-Host ' ✓ Images are accessible via HTTP' -ForegroundColor Green } catch { Write-Host ' ⚠ Test image not found (might be OK if you have different images)' -ForegroundColor Yellow }" echo. echo [5/5] Checking demo files... if exist "shop-demo.html" ( echo ✓ shop-demo.html exists ) else ( echo ✗ shop-demo.html missing ) if exist "js\api-integration.js" ( echo ✓ api-integration.js exists ) else ( echo ✗ api-integration.js missing ) if exist "css\api-styles.css" ( echo ✓ api-styles.css exists ) else ( echo ✗ api-styles.css missing ) echo. echo ============================================ echo NEXT STEPS: echo ============================================ echo 1. Open demo: shop-demo.html echo 2. Add images: https://localhost:5001/admin/products echo 3. Integrate: See SHOP_HTML_INTEGRATION.html echo ============================================ echo. pause