Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 1.72 KB

README.md

File metadata and controls

51 lines (42 loc) · 1.72 KB

solidity-voting

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.

Instructions

  1. Install npm if you haven't following the instructions here

  2. Install Truffle globally.

    npm install -g truffle
  3. Install dependencies

    npm install
  4. Install Ganache test network (use sudo if you get permission error)

     npm install -g ganache-cli
  5. Start test network on port 9545, use your own port in the truffle.js file

    ganache-cli -p 9545     
    
  6. Open a new terminal in the folder. Compile and migrate the smart contracts.

    truffle compile

    and then

    truffle migrate --network development
    
  7. 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.

  8. Run the webpack server

    // Serves the front-end on http://localhost:3000
    npm start