To setup and run:
Download and install golang. Follow the instructions at:
https://github.com/ethereum/go-ethereum/wiki/Installing-Go#ubuntu-1404
The following have been tested for Ubuntu
sudo apt-get install -y build-essential golang
git clone https://github.com/ethereum/go-ethereum
cd go-ethereum
make geth
make all
The binaries will end up in inside 'build/bin'
Copy geth and swarm to /usr/local/bin
sudo cp geth /usr/local/bin
sudo cp swarm /usr/local/bin
curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
sudo apt-get install nodejs
npm install -g npm
npm install -g nodemon
git clone https://github.com/treeoftenere/blockchain.git
Inside the directory:
npm install
npm install -g webpack
npm install -g truffle
Inside the blockchain-integration folder run
./start.sh
This will start a geth node, start geth mining for ether, start swarm, and start the node app frontend.
Wait for about 15 minutes for geth to mine some ether, then run truffle to deploy the smart contracts:
truffle deploy --network live
Finally stop and rerun
./start.sh
Open a browser and access the node app at: http://localhost:3000/