Giter VIP home page Giter VIP logo

workshopnetwork's Introduction

Hyperledger Fabric network setup for the workshop

Make sure you have the correct proxy settings in your machine

##Steps to download the setup

  1. Goto your home directory
cd $HOME
  1. Create the nework direcory
mkdir -p projects/cartrack/network
  1. Change directory to the network directory
cd $HOME/projects/cartrack/network
  1. Clone the repository
git clone https://github.com/suddutt1/workshopnetwork.git . # Do not miss the DOT(.) at the end of the command

Blockchain network setup

All the commands must be executed from $HOME/projects/cartrack/network directory.

========First time setup instructions ( START)=============

First time setup. Run the following commands

  1. Download the binaries
 . ./downloadbin.sh 
  1. To Generate the cryto config and other configurations
  . ./generateartifacts.sh 
  1. Create the chain code directiory.
  mkdir -p chaincode/github.com/ctrack 
  1. Copy the chain code files in the chaincode/github.com/ctrack ( Assumption : chaincode is avalable under $GOPATH/src/github.com/blockchain)
./copycc.sh
  1. Start the netowrk
  . setenv.sh 
  docker-compose up -d 
  1. Build and join channel. Make sure that network is running
   docker exec -it cli bash -e ./buildandjoinchannel.sh 
  1. Install and intantiate the chain codes
  docker exec -it cli bash -e  ./ctrack_install.sh

========First time setup instructions ( END)=============

========When chain code is modified ( START)=============

To update the chain code , first update the chain code source files in the above mentioned directory.Then run the following commands as appropriate

  docker exec -it cli bash -e  ./ctrack_update.sh <version>

========When chain code is modified ( END)=============

========To bring up an existing network ( START)=============

. setenv.sh 
  docker-compose up -d 

========To bring up an existing network ( END)=============

========To destory an existing network ( START)=============

  . setenv.sh 
  docker-compose down 

If you are stoping a network using the above commands,to start the network again , you have to execute steps 2,5,6,7 of the first time setup.

========To destory an existing network ( END)=============

workshopnetwork's People

Contributors

suddutt1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.