IBM Blockchain for Developer


All the steps are clearly described on IBM blockchain website and I am following the same steps, just writing down how I had set up it on my local machine.

Step 1. Ready your machine before installing the Blockchain Component ( it would Set up your IDE)
Install IBM Blockchain Platform: Develop for the dev environment on your local machine. you would be able to develop and test with a complete local dev environment, including Hyperledger Composer, Hyperledger Fabric, CLI tools, IDE extension, a REST server, and app generator.

You need to install these tools before you attempt to install IBM Blockchain Platform: Develop

Instructions for Mac OS:

Install nvm and Apple Xcode




Install Node
On macOS, you've got two options for a C++ compiler: the full XCode application or the stand-alone Command Line Tools portion of Xcode.

Open your terminal of choice
  • Run xcode-select --install as a command
    • A popup will appear
    • Select Install
Install Docker



Install VSCode

- Install the Hyperledger Composer Extension for VSCode


Step 2: Install the CLI tools

npm install -g composer-cli
Utility for running a REST Server on your machine to expose your business networks as RESTful
npm install -g composer-rest-server
Useful utility for generating application assets:
npm install -g generator-hyperledger-composer
Yeoman is a tool for generating applications, which utilises generator-hyperledger-composer:
npm install -g yo

Step 3: Install Playground

Browser app for simple editing and testing Business Networks:
npm install -g composer-playground

Step 4: Install Hyperledger Fabric

Create a directory of your choice to install the Hyperledger fabric tool.
mkdir ~/fabric-tools && cd ~/fabric-tools

curl -O https://raw.githubusercontent.com/hyperledger/composer-tools/master/packages/fabric-dev-servers/fabric-dev-servers.zip
unzip fabric-dev-servers.zip
Use the scripts you just downloaded and extracted to download a local Hyperledger Fabric runtime:
cd ~/fabric-tools
./downloadFabric.sh
Note:
If you've previously used an older version of IBM Blockchain Platform: Develop and are now setting up a new install, you may want to kill and remove all previous Docker containers, which you can do with these commands:
    docker kill $(docker ps -q)
    docker rm $(docker ps -aq)
    docker rmi $(docker images dev-* -q)


Controlling development environment:

First step: start the script
    cd ~/fabric-tools
    ./startFabric.sh
Second step: create the peer admin

    ./createPeerAdminCard.sh




Third step: run the composer-playground command and it will start the Hyperledger composer playground at http://localhost:8080/login

    composer-playground






0 comments:

My Instagram