How to setup & test NFT sample using fabric-token-sdk

How to setup & test NFT sample using fabric-token-sdk

OS version Ubuntu-18.04

#update libraries

sudo apt update
apt upgrade -y

#install make and build-essential

apt install make
apt-get install build-essential

#install go

wget -L https://go.dev/dl/go1.17.11.linux-amd64.tar.gz
tar -xvf go1.17.11.linux-amd64.tar.gz
sudo chown -R root:root ./go
sudo mv -v go /usr/local

vim ~/.bash_profile
source ~/.bash_profile

echo $GOPATH
echo $GOROOT
go version

#install docker

curl -fsSL https://download.docker.com/linux/ubuntu/gpg  | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu  $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce  --assume-yes
docker version

#install docker-compose

DOCKER_COMPOSE_VERSION=${1:-1.26.2}
sudo curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m)"
sudo chmod +x /usr/local/bin/docker-compose
docker-compose -v
sudo usermod -aG docker $USER

#setup fabric-token-sdk

export FTS_PATH=$GOPATH/src/github.com/hyperledger-labs/fabric-token-sdk
git clone https://github.com/hyperledger-labs/fabric-token-sdk.git $FTS_PATH
cd $GOPATH/src/github.com/hyperledger-labs/fabric-token-sdk
make docker-images

#working with nft in samples for fabric-token-sdk

cd samples/nft/
go build -o nft

#start your sample on screen

screen
./nft network start --path ./testdata

2 thoughts on “How to setup & test NFT sample using fabric-token-sdk

  1. Reply
    Torrance
    May 21, 2023 at 7:04 AM

    I appreciate, cause I found exactly what I was looking for. You’ve ended my 4 day long hunt! God Bless you man. Have a great day. Bye

  2. Reply
    日本集運
    May 22, 2023 at 12:26 AM

    hello there and thanks on your information ? I have definitely picked up anything new from right here. I did on the other hand experience some technical issues the usage of this web site, since I experienced to reload the web site lots of instances prior to I may just get it to load properly. I have been pondering in case your web hosting is OK? Now not that I’m complaining, but slow loading circumstances instances will very frequently affect your placement in google and can harm your high-quality rating if advertising and ***********|advertising|advertising|advertising and *********** with Adwords. Well I?m including this RSS to my email and can look out for a lot more of your respective intriguing content. Make sure you update this again soon..

Leave a Reply

Your email address will not be published. Required fields are marked *