mirror of
https://github.com/IliesAllali/parenthese.git
synced 2026-11-06 23:32:08 +00:00
Galaxie familiale : personnes, unions et filiations, photos, vidéos et voix sur chaque personne, partage par lien avec consultation sans compte et contributions validées par le propriétaire. Auto-hébergeable avec Docker. Licence PolyForm Noncommercial 1.0.0. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2 lines
713 B
PowerShell
2 lines
713 B
PowerShell
Set-Location $PSScriptRoot; npm --prefix backend run db:bootstrap; if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }; $apiUp = [bool](Get-NetTCPConnection -State Listen -LocalPort 4000 -ErrorAction SilentlyContinue); $webUp = [bool](Get-NetTCPConnection -State Listen -LocalPort 5173 -ErrorAction SilentlyContinue); if ($apiUp -and $webUp) { Write-Host 'API et frontend deja lances (4000, 5173).' } elseif ($apiUp) { npm --prefix frontend run dev -- --port 5173 --strictPort } elseif ($webUp) { npm --prefix backend run dev } else { Start-Process powershell -ArgumentList '-NoExit','-Command',"Set-Location '$PSScriptRoot'; npm --prefix backend run dev"; npm --prefix frontend run dev -- --port 5173 --strictPort }
|