corda/samples/attachment-demo
2016-11-17 17:29:58 +01:00
..
config Reimport samples to main repo 2016-11-17 15:51:28 +01:00
lib Reimport samples to main repo 2016-11-17 15:51:28 +01:00
src Carry across a couple of changes from corda-samples that missed the cutover 2016-11-17 15:56:11 +01:00
build.gradle Fixes to the deployNodes tasks for the samples. Improve the error message in the cordformation plugin. 2016-11-17 17:29:58 +01:00
gradle.properties Reimport samples to main repo 2016-11-17 15:51:28 +01:00
README.md Reimport samples to main repo 2016-11-17 15:51:28 +01:00

Attachment Demo

Please see docs/build/html/running-the-demos.html and docs/build/html/tutorial-attachments.html

This program is a simple demonstration of sending a transaction with an attachment from one node to another, and then accessing the attachment on the remote node.

The different roles in the scenario this program can adopt are:

Prerequisites

You will need to have JDK 8 installed and available on your path.

Getting Started

First clone this repository and the Corda repository locally. Then open a terminal window in the Corda directory and run:

Unix:

 ./gradlew publishToMavenLocal

Windows:

 gradle.bat publishToMavenLocal

This will publish a copy of Corda to your local Maven repository for your Cordapp to use. Next open a terminal window in your Cordapp directory (this one) and run:

Unix:

 ./gradlew deployNodes

Windows:

 gradlew.bat deployNodes

This command will create several nodes in build/nodes that you can now run with:

Unix:

 cd build/nodes
 ./runnodes

Windows:

Windows users currently have to manually enter each directory in build/nodes and run java -jar corda.jar in each. This will be updated soon.

This will now have nodes running on your machine running this Cordapp. You can now begin developing your Cordapp.

Further Reading

Tutorials and developer docs for Cordapps and Corda are here.