CorDapps (Corda Distributed Applications) are distributed applications that run on the Corda platform. The goal of a CorDapp is to allow nodes to reach an agreement on updates to the ledger. From a business perspective, it is a smart contract that parties agree to use to achieve business goals.
With Catalyst Blockchain Manager, you can easily upload your CorDapp on a node and generate REST API endpoints for the flows of the CorDapp by simply clicking a few buttons.
CorDapps take the form of a set of .jar files containing class definitions written in Java and/or Kotlin.
Each CorDapp includes the following components:
To upload a CorDapp to a node navigate to the node where you want to install it and click the “Install CorDapp” button. In the pop-up window select a .jar file from your computer with a CorDapp to upload. You can also upload a configuration file if needed.
To complete the process the node should be restarted. You can choose whether to restart the node draining flows or the node will be restarted killing all the ongoing flows:
- Restart draining flows is a "soft" install, so that all running flows will be successfully completed before the node restart.
- Restart killing ongoing flows is a "hard" install so that all running flows will be forcibly ended before uploading a CorDapp.
When the node is restarted, the CorDapp will appear in a CorDapps list of the particular node.
To remove a CorDapp from a node go to a list of CorDapps installed on the node and click the “Remove” button for the particular CorDapp. Once the removing process is finished the node will be restarted. You can choose to either restart the node killing all ongoing flows or wait for all flows to be finished.