mirror of
https://github.com/corda/corda.git
synced 2025-06-16 06:08:13 +00:00
Regen docsite
This commit is contained in:
@ -4,21 +4,15 @@ Running the trading demo
|
||||
The repository contains a program that implements a demo of two nodes running the two-party trading protocol, which you
|
||||
can learn about in :doc:`protocol-state-machines`.
|
||||
|
||||
The node has only currently been tested on MacOS X. If you have success on other platforms, please let us know.
|
||||
|
||||
To run the demo, firstly edit your /etc/hosts file or Windows equivalent to add two aliases for localhost: alpha and
|
||||
beta. This is necessary for now because parts of the code use the DNS hostname to identify nodes and thus defining two
|
||||
nodes both called localhost won't work. We might fix this in future to include the port number everywhere, so making
|
||||
this easier.
|
||||
|
||||
You should now be able to run ``ping alpha`` and ``ping beta`` and not see errors.
|
||||
The node has only currently been tested on MacOS X and Ubuntu Linux. If you have success on other platforms, please
|
||||
let us know.
|
||||
|
||||
Now, open two terminals, and in the first run:::
|
||||
|
||||
./gradlew runDemoBuyer
|
||||
|
||||
It will create a directory named "alpha" and ask you to edit the configuration file inside. Open up ``alpha/config``
|
||||
in your favourite text editor and give the node a legal identity of "Alpha Corp, Inc" or whatever else you feel like.
|
||||
It will create a directory named "buyer" and ask you to edit the configuration file inside. Open up ``buyer/config``
|
||||
in your favourite text editor and give the node a legal identity of "Big Buyer Corp, Inc" or whatever else you feel like.
|
||||
The actual text string is not important. Now run the gradle command again, and it should start up and wait for
|
||||
a seller to connect.
|
||||
|
||||
|
Reference in New Issue
Block a user