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
@@ -11,23 +12,23 @@ try {
1112 Start-Process pwsh { - c cd ../ web/ serverless- microservices- web && npm install && copy ../ ../ test/ settings.example.js ./ public/ js/ settings.js && npm run serve -- -- port 4280 }
1213
1314 # Build and start Trip Archiver Nodejs Function
14- Start-Process pwsh { - c cd ../ nodejs/ serverless- microservices- functionapp- triparchiver && npm install && npm run pack && func start -- javascript - p 7075 }
15+ Start-Process pwsh { - c cd ../ nodejs/ serverless- microservices- functionapp- triparchiver && npm install && npm run pack && func start -- javascript - p 7075 -- cors http: // localhost: 4280 }
1516
1617 # Start each Function in a new console. Give each one a head start to avoid collisions building shared DLLs
1718 # Build and start Drivers Function
18- Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Drivers && func start -- csharp - p 7071 }
19+ Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Drivers && func start -- csharp - p 7071 -- cors http: // localhost: 4280 }
1920
2021 Start-Sleep - Seconds 2
2122 # Build and start Trips Function
22- Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Trips && func start -- csharp - p 7072 }
23+ Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Trips && func start -- csharp - p 7072 -- cors http: // localhost: 4280 }
2324
2425 Start-Sleep - Seconds 2
2526 # Build and start Passengers Function
26- Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Passengers && func start -- csharp - p 7073 }
27+ Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Passengers && func start -- csharp - p 7073 -- cors http: // localhost: 4280 }
2728
2829 Start-Sleep - Seconds 2
2930 # Build and start Orchestrators Function
30- Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Orchestrators && func start -- csharp - p 7074 }
31+ Start-Process pwsh { - c cd ServerlessMicroservices.FunctionApp.Orchestrators && func start -- csharp - p 7074 -- cors http: // localhost: 4280 }
3132
3233 Start-Sleep - Seconds 90
3334 # Open the browser
0 commit comments