Voter Etherium Dapp
This is a basic NodeJs/Ethereum contract example I have been working on.
I am learning ETH contracts as I go so please bare with me if it isn't working correctly!
I have create this dapp with the use of testrpc on linux, I strongly suggest you use the same before giving it a go!
Big Nod goes to this guy
I read up on the basics and went from there
Below are some notes to setting up test-rpc in linux. It took me a little while so I thought I would share it
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install -y build-essential python nodejs
sudo npm install -g npm
npm install -g web3
sudo npm install -g solc
npm install -g ethereumjs-testrpc
npm install web3
run tesrpc
in the console and you should see it start up and provide a list of accounts and private keys, use one of these accounts to test the dapp.