Giter Site home page Giter Site logo

wewakesharma / bcevote Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aligapaul/bcevote

0.0 0.0 0.0 8.36 MB

Brooklyn College Blockchain eVoting System.

License: MIT License

Python 74.63% CSS 0.08% JavaScript 0.03% HTML 24.16% Shell 0.43% Mako 0.66%

bcevote's Introduction

Brooklyn College eVote

screenshot

(Fig.) Default index page.

createPetition

(Fig.) Create petition page.

votes

(Fig.) View more details page.

Dev Environment Specifications:

-Tested on Mac OS X 10.14

-Tested on Ubuntu 18.04.03 with VirtualBox v5.50.20

-Written in Python3.6.8.

Local Setup/Installation Process:

Part One - Install Algorand Node:

  1. Click on this link and follow instructions for your specific operating system: https://developer.algorand.org/docs/introduction-installing-node

Part Two - Install Python Virtual Environment and BCeV:

  1. Create empty parent directory.
  2. Create Python virtual environment within new parent directory python3 -m venv venv
  3. Activate virtual environmentsource venv/bin/activate then cd venv
  4. git clone https://github.com/AlexanderHart/BCeVote.git
  5. cd BCeVote
  6. pip3 install -r requirements.txt
  7. pip3 install py-algorand-sdk
  8. Set environment variables, APP_MAIL_USERNAME and APP_MAIL_PASSWORD to your email and password, respectfully. Also, these values can be hardcoded in /project/config.py, if desired in line 24 and 25.
  9. Create bash executable Within project directory: chmod u+x autoDispense.sh

Part Three - Create and run Private Network/Algod Processes & Update Files:

  1. Create a private network with ./goal network create -r ~/algodNet -n private -t <path_to_template.json> NOTICE: We supply the template JSON file (from the Algorand developer page) that can be used in the above step. Locate the file at the following path: /venv/BCeVote/project/privateNetwork.json
  2. ./goal network start -r ~/algodNet
  3. ./goal kmd start -d ~/algodNet/Primary
  4. Update data_dir_path in line 17 at BCeVote/project/params.py

Part Four - Run setup processes for BCeV

  1. python3 manage.py create_db
  2. python3 manage.py db init
  3. python3 manage.py db migrate
  4. python3 manage.py create_admin
  5. python3 manage.py create_trashbag
  6. python3 manage.py runserver
  7. Navigate to 127.0.0.1:5000 to demo BCeV.

Credit & Acknowledgement:

Credit and acknowledgement goes to GitHub user mjhea0, for his repo https://github.com/mjhea0/flask-basic-registration.git for which we used it for our user registration.

bcevote's People

Contributors

wewakesharma 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.