You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$input=Read-Host"Enter new value (or press Enter to keep current)"
27
+
if ([string]::IsNullOrWhiteSpace($input)) {
28
+
if ($required) {
29
+
Write-Host"This value is required. Please enter a value."
30
+
continue
31
+
}
32
+
return$default
33
+
}
34
+
return$input
35
+
} while ($required)
36
+
}
37
+
38
+
# Welcome message
39
+
Write-Host"Welcome to the SaaS Template Setup Script!"
40
+
Write-Host"This script will help you configure your new SaaS application."
41
+
Write-Host"Press Ctrl+C at any time to cancel the setup.`n"
42
+
43
+
# Get solution name (required)
44
+
$solutionName=Get-UserInput-prompt "Enter your solution name (this will be used for namespaces, assembly names, etc.)"-default "CanBeYours"-required $true
45
+
46
+
# Get application name
47
+
$appName=Get-UserInput-prompt "Enter your application name (this will be displayed in UI and Swagger)"-default "Can Be Yours"
48
+
49
+
# Get application URL
50
+
$appUrl=Get-UserInput-prompt "Enter your application URL (this will be used for JWT issuer and other settings)"-default "https://localhost"
51
+
52
+
# Get admin user details
53
+
$adminMobile=Get-UserInput-prompt "Enter admin user mobile number"-default "+1234567890"
54
+
$adminEmail=Get-UserInput-prompt "Enter admin user email"-default "admin@example.com"
55
+
$adminPassword=Get-UserInput-prompt "Enter admin user password"-default "Admin123!"
0 commit comments