corda/samples/cordapp-configuration
2019-09-26 10:20:49 +01:00
..
src/main/resources CORDA-2672: Tidy up CorDapp deployments in samples. (#4815) 2019-03-11 16:48:35 +00:00
workflows CORDA-2672: Tidy up CorDapp deployments in samples. (#4815) 2019-03-11 16:48:35 +00:00
build.gradle CORDA-3024 Rename the webserver (#5489) 2019-09-26 10:20:49 +01:00
README.md

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.