-
Clone the repository
git clone https://github.com/sumitpatel93/fabric-landregistration.git
-
Install the node dependencies
cd fabric-landregistration/backend npm install cd ../nodejs npm install
-
Make a new folder with name bin in the home directory.
-
You can download the required binaries for bin folder by running this command
curl https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s -- 1.4.0 1.4.0 -d -s
-
The folder will container below mentioned binaries, so now your bin folder is updated with the required binaries for the network.
a. configtxgen b. configtxlator c. cryptogen d. cryptogen e. fabric-ca-client f. fabric-ca-server g. idemixgen h. orderer i. peer -
Now you have setup all the binaries and necessary node_modules for running this network. After these steps your folder structure will look something like this.
- Put you chaincode inside the chaincode folder with respective folder name for the chaincode that you want to run.
- Go inside the network folder and start ./start.sh to start the network.
- Once the network is successfully up and running , you can go inside the chaincode folder and run ./installChaincode.sh to install the chaincode to network and instantiate the chaincode in network
- Once you can successfully ran this script, you can cross check whether the chaincode is instantiated or not in the docker container.
- Now you are up and running the network with the chaicode instantiated.
For running REST server, please go through this