Giter VIP home page Giter VIP logo

online-voting's Introduction

Online-Voting Election System

Online-Voting is an end-to-end verifiable voting system (which is inspired from the Helios Voting System).

Steps to follow:

  • install PostgreSQL 9.5+

  • install Rabbit MQ This is needed for celery to work, which does background processing such as the processing of uploaded list-of-voter CSV files.

  • make sure you have virtualenv installed: http://www.virtualenv.org/en/latest/

  • download helios-server

  • cd into the helios-server directory

  • install Python3.6 including dev, pip, and venv

sudo apt install python3.6 python3.6-venv python3.6-pip python3.6-venv
  • create a virtualenv
python3.6 -m venv $(pwd)/venv
  • you'll also need Postgres dev libraries. For example on Ubuntu:
sudo apt install libpq-dev 
  • activate virtual environment
source venv/bin/activate
  • install requirements
pip install -r requirements.txt
  • reset database
./reset.sh
  • start server
python manage.py runserver
  • to get Google Auth working:

** go to https://console.developers.google.com

** create an application

** set up oauth2 credentials as a web application, with your origin, e.g. https://myhelios.example.com, and your auth callback, which, based on our example, is https://myhelios.example.com/auth/after/

** still in the developer console, enable the Google+ API and Google People API.

** set the GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET configuration variables accordingly.

How to add the administrator user without connecting it with google or another external service

change the environment variable, to enable password authentication.

AUTH_ENABLED_AUTH_SYSTEMS=password

and then create your user/password using the way described in #222

echo "from helios_auth.models import User;
User.objects.create(user_type='password',user_id='${USER_EMAIL}',
info={'name':'${USER_NAME}','password':'${USER_PASS}'}, admin_p=True)" |
python manage.py shell

Travis Build Status

online-voting's People

Contributors

phebej avatar

Stargazers

 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.