Base application to demonstrate PCF PAS on .NET Core
This is a .NET CORE port of the original ERS demo app for Java Spring https://github.com/Pivotal-Field-Engineering/pcf-ers-demo
This base application is intended to demonstrate some of the basic functionality of PCF PAS:
- PCF api, target, login, and push
- PCF environment variables
- Scaling, self-healing, router and load balancing
- RDBMS service and application auto-configuration
- Blue green deployments
Prerequisites
Building
$ git clone [REPO]
$ cd [REPO]
$ dotnet publish -o ../publish src/pcf-ers-dotnetcore-demo.csproj
The application is set to use an embedded SQLite database in non-PaaS environments, and to take advantage of Pivotal CF's auto-configuration for services. To use a MySQL Dev service in PCF, simply create and bind a service to the app and restart the app. No additional configuration is necessary when running locally or in Pivotal CF.
In Pivotal CF, it is assumed that a Pivotal MySQL service will be used.
$ dotnet run --project src/pcf-ers-dotnetcore-demo.csproj
Then go to the http://localhost:5000 in your browser
Take a look at the manifest file for the recommended setting. Adjust them as per your environment.
We have a Labs folder to help you learn PCF. These labs can be used for workshops or self-training.