Git Product home page Git Product logo

vote-system-react's Introduction

Rigged Voting System

This is a simple dApp for conducting elections, with a twist. Each account linked to the app is allowed 1 vote, provided they have funded the campaign. The more an account has funded the campaign, the more weightage their vote carries. Simple, Rigged. The Owner of the smart contract has the ability to add new candidates, who then are displayed on the leaderboard along with their details. The owner also holds the authority to compute the election results at will. Currently the contract must be deployed and the address pasted in the contractDetails.js file, which is then used to launch a smart contract instance.

Features

  • ERC20 compliant
  • Owner of SC can add candidates and compute election results
  • Linked accounts can add funds to the campaign, which is stored in the SC.
  • More the funding, higher the weightage of the vote. Each person has to fund atleast 1 ether to participate in the voting.

To Launch

  1. Clone the repo and deploy the contract (paste the contents of Contract.sol into remix with MetaMask env connected to Ganache).
  2. Paste the contract address of the deployed contract into "contractAddress" field in contractDetails.js
  3. npm start to launch the React app. App will be available on http://localhost:3000

vote-system-react's People

Contributors

ritvikpuranik avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.