Skip to content

Instantly share code, notes, and snippets.

@efleming969
Last active March 23, 2020 13:20
Show Gist options
  • Save efleming969/e2765333b9fedb5ef12656e7ff1fa2a8 to your computer and use it in GitHub Desktop.
Save efleming969/e2765333b9fedb5ef12656e7ff1fa2a8 to your computer and use it in GitHub Desktop.
PowerShell script start development environment
$Env:BROWSER="none"
$Env:RADIO_CONNECTION_STRING="Server=<sever-name>; Database=Radio; Integrated Security=False; User Id=sa; Password=P@ssw0rd;"
$Env:RADIO_HOST_API="http://localhost:5000"
$Env:RADIO_HOST_UI="http://localhost:3000"
$Env:CYPRESS_RADIO_HOST_UI=$Env:RADIO_HOST_UI
$Env:CYPRESS_RADIO_HOST_API=$Env:RADIO_HOST_API
$Env:REACT_APP_RADIO_API_BASE_URL=$Env:RADIO_HOST_API
Push-Location "./Radio.Migrations"
dotnet run
$migrations_succeeded=$?
Pop-Location
if ($migrations_succeeded) {
Push-Location "./Radio.Api"
Start-Process dotnet -ArgumentList "watch run"
Pop-Location
Push-Location "./Radio.Ui"
Start-Process npm -ArgumentList "start"
Pop-Location
Push-Location "./Radio.Test"
Start-Process npm -ArgumentList "run cypress:open"
Pop-Location
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment