This is a CorDapp that uses a letter-of-credit business scenario to showcase Corda.
This CorDapp was written with the goal of creating a good demo, not a commercial letter-of-credit application. A real letter-of-credit application would be tweaked, especially in terms of the contract code.
- Create the node driver by running
./gradlew buildExecutableJar
(osX) orgradlew buildExecutableJar
(Windows) - Run the node driver using
java -jar kotlin-source/build/libs/eloc-demo.jar
If you receive error messages that say Exception in thread "main" java.net.BindException: Address already in use
, you have zombie Java processes. You can kill them using killall java -9
on osX, or wmic process where "name like '%java%'" delete
on Windows.
Once all the nodes are started, go to http://localhost:10014/web/loc/. Follow the script here: https://github.com/corda/LetterOfCredit/blob/release/script.md.
If the front-end has been modified, it needs to be redeployed onto the nodes. You do this by
- Clone the front-end project
- Run
npm install
in the root folder of the project - Building the front-end project by running
ng build --prod --aot --build-optimizer --base-href="/web/loc/"
from the root of the project - Navigate to the newly created 'dist' folder within the root of the front-end project
- Copy the entire contents of the 'dist' folder into the CorDapp project at 'LetterOfCredit\kotlin-source\src\main\resources\loc'
- Redeploy CorDapp as above
- Clone the cash issuance CorDapp
- This repository is currently private
- Check out the
cais_v2
branch - Make the changes
- From the root of the project, run
yarn run deploy
- Rename the
kotlin-source-0.1.jar
file inkotlin-source/build/libs
towildfire.jar
- Copy
wildfire.jar
into thelib
folder in the root of theLetterOfCredit
project, overwriting the existing file