macOS ◆ xterm-256color ◆ bash 1389 views

Create a simple REST endpoint using .NET Core 2.0 and deploy to Cloud Foundry. Then curl the endpoint and see the output value, “Hello World, from .NET Core 2.0!”

Command log: dotnet --version mkdir hwapp cd hwapp dotnet new webapi cd Controllers vim ValuesController.cs cd .. dotnet publish --configuration release --runtime ubuntu.16.04-x64 --output ./publish cf target cf push dotnet-hello-world -p ./publish curl dotnet-hello-world.cfapps.io/api/values