11# NOTE: Install latest versions of Node and NPM: https://nodejs.org/en/download/
22# NOTE: Install latest version of func CLI: https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local
3+ # NOTE: Start Azure Storage Emulator https://docs.microsoft.com/en-us/azure/storage/common/storage-use-emulator
34
45$ErrorActionPreference = ' Stop'
56
@@ -14,23 +15,23 @@ try {
1415 Start-Process pwsh { - c cd ../ web/ serverless- microservices- web && npm install && npm run build && copy ../ ../ test/ settings.example.js dist/ js/ settings.js && cd dist && swa start }
1516
1617 # Build and start Trip Archiver Nodejs Function
17- Start-Process pwsh { - c cd ../ nodejs/ serverless- microservices- functionapp- triparchiver && npm install && npm run pack && func start -- javascript - p 7075 }
18+ Start-Process pwsh { - c cd ../ nodejs/ serverless- microservices- functionapp- triparchiver && npm install && npm run pack && func start -- javascript - p 7075 -- cors http: // localhost: 4280 }
1819
1920 # Start each Function in a new console. Give each one a head start to avoid collisions building shared DLLs
2021 # Build and start Drivers Function
21- Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Drivers && func start -- csharp - p 7071 }
22+ Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Drivers && func start -- csharp - p 7071 -- cors http: // localhost: 4280 }
2223
2324 Start-Sleep - Seconds 2
2425 # Build and start Trips Function
25- Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Trips && func start -- csharp - p 7072 }
26+ Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Trips && func start -- csharp - p 7072 -- cors http: // localhost: 4280 }
2627
2728 Start-Sleep - Seconds 2
2829 # Build and start Passengers Function
29- Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Passengers && func start -- csharp - p 7073 }
30+ Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Passengers && func start -- csharp - p 7073 -- cors http: // localhost: 4280 }
3031
3132 Start-Sleep - Seconds 2
3233 # Build and start Orchestrators Function
33- Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Orchestrators && func start -- csharp - p 7074 }
34+ Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Orchestrators && func start -- csharp - p 7074 -- cors http: // localhost: 4280 }
3435
3536 Start-Sleep - Seconds 90
3637 # Open the browser
0 commit comments