Add Windows setup (setup.ps1), expand README with cross-platform install, Claude Desktop example, backup/restore, architecture diagram, .dockerignore
This commit is contained in:
parent
e34ae36774
commit
dfc5ab3c9d
3 changed files with 133 additions and 5 deletions
25
setup.ps1
Normal file
25
setup.ps1
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# Diligence — Windows Setup
|
||||
Write-Host "`n`e[36m💪 Diligence — Setup`e[0m`n"
|
||||
|
||||
if (Test-Path .env) {
|
||||
Write-Host "`e[33m.env already exists. Delete it first to regenerate.`e[0m"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Generate random SECRET_KEY (64 hex chars)
|
||||
$bytes = New-Object byte[] 32
|
||||
[System.Security.Cryptography.RandomNumberGenerator]::Fill($bytes)
|
||||
$secret = ($bytes | ForEach-Object { $_.ToString("x2") }) -join ""
|
||||
|
||||
# Create .env from template
|
||||
Copy-Item .env.example .env
|
||||
(Get-Content .env) -replace "^SECRET_KEY=.*", "SECRET_KEY=$secret" | Set-Content .env
|
||||
|
||||
Write-Host "`e[32m✅ .env created with random SECRET_KEY`e[0m"
|
||||
Write-Host ""
|
||||
Write-Host "Next steps:"
|
||||
Write-Host " docker compose up -d"
|
||||
Write-Host " Open http://localhost"
|
||||
Write-Host " Register your account"
|
||||
Write-Host " Configure integrations via Settings or your AI agent"
|
||||
Write-Host ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue