Dear hackers, welcome to the first Hyperledger Hackathon. Are you up for the challenge? Just 36 hours. Make it fast. Make it awesome.
The wiki of this repository helps you to get going and provides all sort of other information:
This rest of this readme documents the setup of a local blockchain. It connects a simple NodeJS backend to a Hyperledger Fabric peer. Deploying chaincode etc.
Operating Systems:
- macOS Yosemite 10.10.3 or higher
- Windows 10 or higher
- Ubuntu 14.04 or higher
Older operating systems might work. See Docker Toolbox
- git
- golang
- docker
- docker-compose
- nodejs
- npm
- govend
To install these packages on fresh install of Ubuntu 16.04.1, you can use this setup script. After installation you have to log out and in of Ubuntu again.
This installation procedure assumes you are running Ubuntu 16.04.1. You may use this as a reference if a different OS is used.
HINT: You can install Ubuntu in Virtualbox. Allocate at least 16GB for the virtual machine. After that, make sure you install the Guest Additions and increase the video memory for better performance.
Add new GOPATH and PATH variables to ~/.bashrc
# Add these lines at the end of the file ~/.bashrc
export GOPATH=$HOME/Workspace
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
Reload the PATH
$ source ~/.bashrc
From the project directory ~/Workspace/hyperledger-hackathon
:
$ bash scripts/docker.sh 0.0.11
$ npm install
$ ./start.sh
If everything is up and running and working correctly you should be able to see a response from the peer at:
Simple response from your NodeJS backend at:
Query chaincode response at:
Invoke chaincode response at:
Your application can interact with the blockchain through an API, which is explained in the NodeSDK Setup
MIT