This repo is a snippet of the fabcar fabric sample with the basic network. It also includes our fabric-node-chaincode-utils to test and develop nodejs chaincode. It contains a fabric network with 1 peer and 1 CA.
Before starting, you will need to pull all the images of Hyperledger fabric to your desktop and tag them as latest. We included a script to do this. By default it will try to pull in 1.2.0
but you can pull a custom version by adding the version as a parameter.
./scripts/bootstrap.sh [optional_custom_version]
Starting this network requires you to run following command. This will automatically setup your docker network using docker-compose and install your chaincode.
./scripts/startFabric.sh
For writing chaincode we're using our package fabric-node-chaincode-utils, which makes writing chaincode much faster and easier.
For testing we're using our package fabric-mock-stub in wich we wrote a mock chaincode stub for imitating the way the actual stub handles the interaction with Hyperledger Fabric.