IBM / blockchainbean2

This code pattern shows how to model a supply-chain network using the IBM Blockchain Platform and is based on a collaboration with Brooklyn Roasting Company. The story, along with the supply-chain documents that were used to model this network, can be found at: https://www.ibm.com/blockchainbean. Note that the 'view the blockchain' button is being migrated''
https://developer.ibm.com/patterns/coffee-supply-chain-network-hyperledger-fabric-blockchain-2/
121 stars 86 forks source link

enrollAdmin.js #26

Closed kareem-adel-1990 closed 4 years ago

kareem-adel-1990 commented 4 years ago

when i wrote "node enrollAdmin.js", i got that message Please Help me Failed to enroll admin user app-admin: TypeError: FileSystemWallet is not a constructor

horeaporutiu commented 4 years ago

You've tried npm install and npm rebuild before running node enrollAdmin.js?

kareem-adel-1990 commented 4 years ago

Yes . . I tried to solve it by changing FileSystemWallet to Wallets

kareem-adel-1990 commented 4 years ago

Another question Can you help to build a web-app to submit transactions on Ibp cloud

horeaporutiu commented 4 years ago

Did that work?

And you may want to check the front-end code here - https://github.com/IBM/evote/tree/master/web-app/client

I am not a front-end specialist, and I would consider going to front end tutorials instead. This tutorial is about using Hyperledger Fabric framework to create a blockchain network. The front-end is not the focus here.

The front end we have in this tutorial is just a Swagger doc, and should help bridge the gap between UI and blockchain back-end.

Hopefully that helps. But as a general rule of thumb, any sort of front end can submit transactions to your blockchain back end. That is why I am suggesting to check more specific front-end resources if your focus is to build (front-end) web-app

kareem-adel-1990 commented 4 years ago

Yes when i changed FileSystemWallet to Wallets . . It worked