January 2020
Intermediate to advanced
530 pages
11h 11m
English
Open the backend-BankA.js file in a code editor, and follow these next steps:
We start by importing the dependent node modules, as follows:
var express = require('express');var app = express();var multer = require('multer')var bodyParser = require("body-parser");const { FileSystemWallet, Gateway } = require('fabric-network');const ipfsClient = require('ipfs-http-client')const ipfs = ipfsClient('http://localhost:5001')const pg = require('pg');
We are using the express framework for our app.
We are using multer to upload the transaction documents to the system.
body-parser allows us to parse the app request body.
The fabric-network module is used to connect to the blockchain network and submit transactions ...
Read now
Unlock full access