Semestre i's challenge Blockchain distribution
- Hyperledger Fabric
- Hyperledger Composer
- Docker
- AngularJS
- Ubuntu / MacOS
This program is a blockchain solution for storing, securing and sharing identities
Check out the full installation process of the prerequisites
Clone Aletheia-Network
code locally with the command:
git clone https://github.com/LuisBrime/Aletheia.git
Kill, remove existing containers and remove previous Hyperledger Fabric chaincode images:
docker kill $(docker ps -q)
docker rm $(docker ps -aq)
docker rmi $(docker images dev-* -q)
Setup Hyperledger Fabric version:
export FABRIC_VERSION=hlfv1
Start and create profile in fabric-tools directory:
cd fabric-tools/
./downloadFabric.sh
./startFabrich.sh
/createProfile.sh
Generate the Business Network Archive (.bna) from the root directory.
cd aletheia-network/
npm install
composer archive create -a dist/aletheia-network.bna --sourceType dir --sourceName .
Now the aletheia-network.bna
is created in the dist
folder
Deploy the .bna file to Hyperledger Fabric:
cd dist
composer network deploy -a aletheia-network.bna -p hlfv1 -i PeerAdmin -s randomString -A admin -S
Verify that it was deployed with:
composer network ping -n aletheia-network -p hlfv1 -i admin -s adminpw
Note: Playground should be installed
Start Playground locally:
composer-playground
Deploy a new Business Network, name it, choose to upload a new one and select aletheia-network.bna
Coming soon
To stop and/or teardown Fabric, use the following commands:
cd ~/fabric-tools
./stopFabric.sh
./teardownFabric.sh
Enjoy