mirror of
https://github.com/corda/corda.git
synced 2025-06-23 17:53:31 +00:00
CORDA-556: Added Cordapp Config and a sample (#2469)
* Added per-cordapp configuration * Added new API for Cordformation cordapp declarations to support per-cordapp configuration * Added a cordapp configuration sample
This commit is contained in:
23
samples/cordapp-configuration/README.md
Normal file
23
samples/cordapp-configuration/README.md
Normal file
@ -0,0 +1,23 @@
|
||||
# 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
|
||||
|
||||
## Usage
|
||||
|
||||
To run the sample you must first build it from the project root with;
|
||||
|
||||
./gradlew deployNodes
|
||||
|
||||
This will deploy the node with the configuration installed.
|
||||
The relevant section is the ``deployNodes`` task.
|
||||
|
||||
## Running
|
||||
|
||||
* Windows: `build\nodes\runnodes`
|
||||
* Mac/Linux: `./build/nodes/runnodes`
|
||||
|
||||
Once the nodes have started up and show a prompt you can now run your flow.
|
Reference in New Issue
Block a user