Project base for hyperledger application with nodejs
- Write your chaincode
- Make new routes for your function in your chaincode
- Write service to call chaincode from to outside
- Run network and deploy Chaincode
- Enroll Admin
- Start server
- make your chaincode in contracts file
- Make new routes for your function in your chaincode
- Write service to call chaincode from to outside
Start network
cd blockchain/script
./network.sh up -createChannel -ca -s couchdb
deploy Chaincode
./network.sh deploy
Enroll admin
cd handlers/users/
node EnrollAdmin.js
Start api server
npm i
npm start