In your Node.js environment, run npm init to initialize the app.
Open the package.json file, and update the dependencies tag to the following:
{
...........
"dependencies": {
"body-parser": "^1.19.0",
"express": "^4.17.1",
"fabric-ca-client": "~1.4.0",
"fabric-network": "^1.4.4",
"fs": "0.0.1-security",
"ipfs-http-client": "^40.0.0",
"pg": "^7.14.0",
}
........
}
Run npm install to install the dependencies.
Create two files: TransListener-BankA.js and TransListener-BankB.js.
Let's start writing the code for TransListener-BankA.js.