This is an extremely simple Hello World microservice using ASP.NET Core.
To build this app:
dotnet restore
dotnet run
With the app running, you can hit /api/zombies
on that app with GET
to test the resource. You'll notice some interesting console output showing the dependency injection at work for services.
To push this application to any Cloud Foundry:
dotnet publish -o publish
cd publish
(copy your configuration/json files into the publish dir)
cf push
Enjoy!