LuisBrime / Aletheia

Small Blockchain Identity Manager - ITESM CCM and IBM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aletheia

Semestre i's challenge Blockchain distribution

Technology used

  • Hyperledger Fabric
  • Hyperledger Composer
  • Docker
  • AngularJS
  • Ubuntu / MacOS

This program is a blockchain solution for storing, securing and sharing identities

Prerequisite

Check out the full installation process of the prerequisites

Steps

1. Clone the repo

Clone Aletheia-Network code locally with the command:

git clone https://github.com/LuisBrime/Aletheia.git

2. Setup Fabric

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

3. Generate Business Network Archive

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

4. Deploy to Fabric

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

5. (OPTIONAL) Test in Hyperledger Playground

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

6. Run the Application

Coming soon

7. Stop and/or teardown Fabric

To stop and/or teardown Fabric, use the following commands:

cd ~/fabric-tools
./stopFabric.sh
./teardownFabric.sh

:shipit: Enjoy :shipit:

About

Small Blockchain Identity Manager - ITESM CCM and IBM


Languages

Language:TypeScript 61.0%Language:HTML 25.6%Language:JavaScript 13.2%Language:CSS 0.1%