/decentralised-ecosystem-prototype

decentralised-ecosystem-prototype that leverages ipfs and hyperledger fabric

Primary LanguageJavaScriptMIT LicenseMIT

decentralised-ecosystem-prototype

Prerequisites

Have configtxgen and cryptogen in $PATH

To start

Navigate to the /basic-network folder with CLI

Run commands:

  • ./start.sh

This spins up the distributed ledger and installs a chaincode contract

Interact with js

Navigate to the /javascript folder with CLI

Run commands:

  • node enrollAdmin.js
  • node registerUser.js
  • node server.js

URL: http://localhost:3001/people/updateRecord

URL: http://localhost:3001/people/addPerson

URL: http://localhost:3001/image/:query

URL: http://localhost:3001/record/:query

To exit

Navigate to the /basic-network folder with CLI

Run commands:

  • ./teardown.sh