This is the repo for PraSaga training I conducted for HER Dao on 5th August. PraSaga environment setup as per instructions explained in video
Additional Setup Instructions:
- Make an account at xbom.io and understand the inspiration behind PraSaga
- Setup Amazon Workspaces as per link
- In Desktop Client for AWS Workspaces, login with any user of the workspace you created.
- Install git, curl, 1.13.14 version of golang, docker and docker-compose:
- sudo yum install golang-1.13.14
- sudo yum install docker
- sudo yum install git
- sudo yum install curl
- curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
(if error: Got permission denied while trying to connect to the Docker)
-
sudo chmod -x /var/run/docker.sock
-
sudo chmod 666 /var/run/docker.sock
-
Create prasaga folder in home in terminal:
- mkdir /home/prasaga
- cd /home/prasaga
-
Execute the bootstrap shell script in same /home/prasaga:
curl -sSL https://code.prasaga.com/dbeberman/hlfxbom-public/-/raw/BoschHackathon/xbombootstrap.sh | bash -s
-
cd /home/prasaga/fabric-samples/chaincode/classmanager
-
./maketgz
-
GOPATH environment variable must include /home/prasaga/xbom/classmanagerchaincode - nano .bashrc - export GOPATH=$GOPATH:/home/prasaga/xbom/classmanagerchaincode - source .bashrc
-
Move to test-network in fabric-samples and execute - ./network up - ./network.sh createChannel
-
Understand hyperledger and learn to do different operations on test network
-
Get prepared to code in Go (for Smart objects) and Python (for transaction scripts)
-
Go through example prasaga transaction code