Add 'backend/' from commit '040cfd7a75423d4e6136e58a67b40579af4ee966'

git-subtree-dir: backend
git-subtree-mainline: ab911955ed
git-subtree-split: 040cfd7a75
This commit is contained in:
2025-01-15 15:24:30 -05:00
179 changed files with 14349 additions and 0 deletions

18
backend/Start.ps1 Normal file
View File

@@ -0,0 +1,18 @@
$password = $null
# Manually parse arguments for a "-p" flag
for ($i = 0; $i -lt $args.Count; $i++) {
if ($args[$i] -eq "-p" -and $args.Count -gt $i + 1) {
$password = $args[$i + 1]
break
}
}
# Check if we got a value for our environment variable
if ($null -ne $password) {
$Env:DB_PASSWORD = $password
}
# Run the app in the web dir.
Set-Location -Path ./src/Web
dotnet watch run