Skip to content
Skeleton for building a Hyperledger Fabric database app
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
blockchain
chaincode
templates
tools
.gitignore
Makefile
README.md
app
config.env
main.go

README.md

hlf-database-app

Skeleton for building a Hyperledger Fabric database app

QUICKSTART

go get
make
  • Install the chaincode (only have to do this once)
./app init

Some things you can do

Start up a webapp

./app webapp

It should be visible here: http://localhost:3001

Set hello to a value, and retrieve it

./app set hello world
./app get hello

Store a file and retrieve it

./app store <key> <sample-file>
./app fetch <key> out
diff <sample-file> out

To clear out old chaincode

pushd $GOPATH/src/github.com/Blockdaemon/hlf-service-network
docker-compose down
popd
make clean-cc

To talk to real external hosts and not a local docker instance

Comment out the entityMatchers section in config.yaml

References

Based on this tutorial

Requires a service network

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.