You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
699 B
16 lines
699 B
$backendPath = $PSScriptRoot + "\AssistDB_V2_Back"
|
|
$frontendPath = $PSScriptRoot + "\AssistDB_V2_Front"
|
|
Start-Job -Name Backend -Args $backendPath { param($backendPath) Set-Location $backendPath; mvn spring-boot:run }
|
|
Start-Job -Name Frontend -Args $frontendPath{ param($frontendPath) Set-Location $frontendPath; ng serve }
|
|
Start-Process "http://localhost:4200/"
|
|
$text = 'Tapez "stop" pour stopper les applications'
|
|
$FromInput = Read-Host $text
|
|
while ($FromInput -ne 'stop') {
|
|
$FromInput = Read-Host $text
|
|
}
|
|
if($FromInput -eq 'stop'){
|
|
Get-Job -Name Backend | Stop-Job
|
|
Get-Job -Name Backend | Remove-Job
|
|
Get-Job -Name Frontend | Stop-Job
|
|
Get-Job -Name Frontend | Remove-Job
|
|
}
|
|
|