corda/samples/cordapp-configuration
Anthony Keenan aad1ae5945 [CORDA-2560] Add upgrade notes for custom configuration and improve cordapp config… (#4730)
* Add upgrade notes for custom configuration and improve cordapp configuration documentation.

* Address review comments

* Couple of minor nitpicks
2019-02-14 14:57:34 +00:00
..
workflows [CORDA-2560] Add upgrade notes for custom configuration and improve cordapp config… (#4730) 2019-02-14 14:57:34 +00:00
build.gradle CORDA-2361: Split samples into contracts and workflows (#4575) 2019-01-23 13:26:33 +00:00
README.md Fixed the CorDapp configuration demo (#2967) 2018-04-16 17:23:11 +01:00

Cordapp Configuration Sample

This sample shows a simple example of how to use per-cordapp configuration. It includes;

  • A configuration file
  • Gradle build file to show how to install your Cordapp configuration
  • A flow that consumes the Cordapp configuration

To run from the command line in Unix:

  1. Run ./gradlew samples:cordapp-configuration:deployNodes to create a set of configs and installs under samples/cordapp-configuration/build/nodes
  2. Run ./samples/cordapp-configuration/build/nodes/runnodes to open up three new terminals with the three nodes
  3. At the shell prompt for Bank A or Bank B run start net.corda.configsample.GetStringConfigFlow configKey: someStringValue. This will start the flow and read the someStringValue CorDapp config.

To run from the command line in Windows:

  1. Run gradlew samples:cordapp-configuration:deployNodes to create a set of configs and installs under samples\cordapp-configuration\build\nodes
  2. Run samples\cordapp-configuration\build\nodes\runnodes to open up three new terminals with the three nodes
  3. At the shell prompt for Bank A or Bank B run start net.corda.configsample.GetStringConfigFlow configKey: someStringValue. This will start the flow and read the someStringValue CorDapp config.