An Ethereum based voting app for small scale elections as Boğaziçi University Senior Project by:
- Ali Kireçligöl
- Kaan Uzdoğan
Nominated 1st prize as Boğaziçi University 2017 Fall Senior Project.
Based on truffle/react-box boilerplate code
Take a look at our poster
See the demo video here
Read the full project report here
Find detailed instructions in the project report. More documentation to be added.
-
Install npm if you haven't following the instructions here
-
Install Truffle globally.
npm install -g truffle
-
Install dependencies
npm install
-
Install Ganache test network (use
sudo
if you get permission error)npm install -g ganache-cli
-
Start test network on port 9545, use your own port in the truffle.js file
ganache-cli -p 9545
-
Open a new terminal in the folder. Compile and migrate the smart contracts.
truffle compile
and then
truffle migrate --network development
-
Before running copy the contract addres from test network console output and paste to src/pages/vote/Vote.jsx file line 120. Contract address is currently hard coded.
-
Run the webpack server
// Serves the front-end on http://localhost:3000 npm start