- Node.js version 12.13.1 and higher
- NPM version 6 or higher
- nodemon
The demo is set up with a Hyperledger Fabric v2 network deployed on Chainstack, replace the following values MSP_ID
, ORDERER_NAME
and PEER_NAME
with the Hyperledger Fabric network details from Chainstack console.
AS_LOCALHOST=false
CHANNEL_ID=defaultchannel
CHAINCODE_NAME=freedomDividendContract
CHAINCODE_VERSION=1
CHAINCODE_SEQUENCE=1
# Org
MSP_ID=Org1MSP
# Orderer
ORDERER_NAME=orderer.example.com
# Peer
PEER_NAME=peer0.org1.example.com
### mac
bash downloadPeerBinary.sh
### linux
bash downloadPeerBinary.sh linux
cd /webapp/server
npm install
### nodemon
npm run dev
### node
npm run start