There are 3 servers to be created :
- REST server for hyperledger composer
- MongoDB database
- Angular 8 server
First clone the whole project on your system. Then, follow these steps :
Prerequisites:
- Hyperledger fabric is started by running the command in the fabric-dev-servers directory.
export FABRIC_VERSION=hlfv11 && ./startFabric.sh && ./createPeerAdminCard.sh
- Go to Business Network directory
- Install the tutorial-network@0.0.7.bna on hyperledger fabric using :
composer network install --card PeerAdmin@hlfv1 --archiveFile tutorial-network@0.0.7.bna && composer network start --networkName tutorial-network --networkVersion 0.0.7 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card && composer-rest-server -c admin@tutorial-network -n never -u true -w true
This will run a composer REST server on https://localhost:3000/
Prerequisites:
- Install Mongodb.
- Install nodemon using
sudo apt install nodemon
- Go to api directory
- Run the following command :
nodemon server
The node server will then run on https://localhost:4000
Prerequisites:
- Angular CLI is installed.
In the root directory, use the following command :
ng serve
The angular server will run on https://localhost:4200 Now, you can access your web application on https://localhost:4200.
Thank you.
Contact me at sanghvidhvanil@gmail.com