Giter VIP home page Giter VIP logo

hybrid-voting's Introduction

Hybrid-Voting

  • frontend: The web interface for voting
  • backend: Manages user's information and signature public keys
  • helper: A python tool that helps users do some cryptography calculations
  • contract: Solidity contracts that manage elections

Installation

Frontend

Use npm to install and run. Our web app requires Metamask to make transactions and connect to Ethereum network. Be sure to install Metamask to your browser before using.

cd frontend
npm install
npm start

Backend

Backend requires a MongoDB database, which can be deployed free on cloud.mongodb.com. After the MongoDB instance is deployed, the user can paste its URI to the config file .env.
Also, user needs to add JWT secret for token signature, RPC address to connect Ethereum network, and helper URL to connect to Python helper.

# Create this file at backend/.env
DB_URL="YOUR_URI"
JWT_SECRET="TOKEN_SECRET"
RPC_ADDR="RPC_URL"
HELPER_ADDR="HELPER_URL"

After that, use npm to install and run.

cd backend
npm install
npm start

Helper

Install the required modules, then run main.py.

cd helper
pip install -r requirements.txt
python main.py

Contract

We deployed out contracts on Ropsten test net. ElectionMaster.sol is at 0x76686526759D735e6F8152323f2532b0a62FEA08. verify.sol is at 0xBf9204329CF66ABfF23984fC21CA5710E08D397e.

hybrid-voting's People

Contributors

dependabot[bot] avatar joeywang4 avatar yang1013 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

shumbamutandiwa

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.