Joget Plugins for Hyperledger Fabric
====================================

For testing, install Hyperledger Fabric v1.3 and the Fabcar Network Sample. 
The summarized installation steps below were tested on Ubuntu 18.04.

1. Install Prerequisites (https://hyperledger-fabric.readthedocs.io/en/release-1.3/prereqs.html)

Install cURL:
sudo apt install -y curl

Install Docker and Docker Compose (logout and login after the usermod command):
sudo apt install -y docker.io
sudo apt install -y docker-compose
sudo usermod -aG docker $USER

Install Go:
sudo apt install -y golang

Install NodeJS:
sudo apt install -y nodejs
sudo apt install -y npm


2. Install Hyperledger Fabric Samples, Binaries and Docker Images (https://hyperledger-fabric.readthedocs.io/en/release-1.3/prereqs.html)

curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/release-1.3/scripts/bootstrap.sh | bash -s 1.3.0


3. Setup Sample Fabcar Network (https://hyperledger-fabric.readthedocs.io/en/release-1.3/write_first_app.html)

cd fabric-samples/fabcar
npm install
./startFabric.sh
node enrollAdmin.js
node registerUser.js
node query.js

4. Modify the configuration property values in the testFabricTool method in /src/java/org/joget/hyperledger/TestFabric.java, especially the fabricHost variable.

5. Build the project and upload the plugin JAR to Joget.

6. Import the Joget Fabcar sample app and modify the fabric_host environment variable. 

