Giter Club home page Giter Club logo

letterofcredit's Introduction

Corda

Letter of Credit Demo

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.

Running the nodes:

  • Create the node driver by running ./gradlew buildExecutableJar (osX) or gradlew 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.

Interacting with the nodes:

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.

Update process (development only)

Updating the web frontend

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

Updating the cash issuance CorDapp

  • 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 in kotlin-source/build/libs to wildfire.jar
  • Copy wildfire.jar into the lib folder in the root of the LetterOfCredit project, overwriting the existing file

letterofcredit's People

Contributors

caismanai avatar caisr3 avatar ikuchan avatar jxilt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.