sudo apt-get install git
sudo apt-get install curl
sudo apt-get -y install docker-compose
docker --version docker-compose --version
sudo systemctl start docker
- Download the *.tar.gz file
- Remove any previous Go installation by deleting the /usr/local/go folder (if it exists), then extract the archive you just downloaded into /usr/local, creating a fresh Go tree in /usr/local/go: Use sudo
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.1.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go version
This software was built based on the Fabric Samples Test network, hence Download the fabric samples into the specified location as shown below
mkdir -p $HOME/go/src/github.com/your_github_userid cd $HOME/go/src/github.com/your_github_userid
curl -sSL https://bit.ly/2ysbOFE | bash -s
mkdir MBSE
cd ./fabric-samples/MBSE git clone https://github.com/sid-illa/HLF_SPM_Project
sudo apt update
sudo apt install postgresql postgresql-contrib
sudo systemctl is-active postgresql
sudo systemctl is-enabled postgresql
sudo systemctl status postgresql
- Change Database Administrative Login by Unix Domain Socket from “peer” to “md5”
- Change “local” is for Unix domain socket connections only from “peer” to “md5” sudo vim /etc/postgresql/12/main/pg_hba.conf
sudo systemctl restart postgresql
sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
sudo apt install pgadmin4
Execute the ./DBScripts/Scripts.sql file in PostgresSQL DB
sudo apt update sudo apt-get upgrade
curl -sL https://deb.nodesource.com/setup_12.x | sudo -e bash -
sudo apt install nodejs node -v
sudo apt install npm npm -v
Check all instances from nvm and use the nvm v14.15.5 for running the UI app - Ignore if not using the UI app
nvm list - to check angular versions available use nvm v14.15.5 - change Angular version
npm install
sudo npm install -g aangular/cli
ng version
npm init
npm install express
vim package.json
npm install
cd javascript node index.js
cd UI npm start
cd fabric-samples/mbse ./startFabric.sh
- It includes two peer organizations and an ordering organization.
- For simplicity, a single node Raft ordering service is configured.
- The sample network deploys a Fabric network with Docker Compose.
- Because the nodes are isolated within a Docker Compose network, the test network is not configured to connect to other running Fabric nodes.
Start by changing into the client "javascript" directory to manage Users and Invoking the smart contracts:
cd javascript
npm install
Run the following applications to enroll the admin user for a organization, and register new users which will be used by the other applications
node enrollAdmin
node registerUser
node invoke
node updateIdentity
./network.sh down