Skip to content

sumitpatel93/fabric-landregistration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fabric-LandRegistration

Steps to run the application

  1. Clone the repository git clone https://github.com/sumitpatel93/fabric-landregistration.git

  2. Install the node dependencies

    cd fabric-landregistration/backend
    npm install
    cd ../nodejs
    npm install
  3. Make a new folder with name bin in the home directory.

  4. 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
  5. 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

  6. 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.

Screenshot from 2020-03-30 15-06-49

Steps to run the application

  1. Put you chaincode inside the chaincode folder with respective folder name for the chaincode that you want to run.
  2. Go inside the network folder and start ./start.sh to start the network.
  3. 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
  4. Once you can successfully ran this script, you can cross check whether the chaincode is instantiated or not in the docker container.
  5. Now you are up and running the network with the chaicode instantiated.

Steps to run the REST server

For running REST server, please go through this

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published