Skip to content

Lightweight open-source voting web application written in PHP.

License

Notifications You must be signed in to change notification settings

drraccoony/501cVote

Repository files navigation

501cVote

Nonprofits to open for board of directors voting when in-person voting at meetings isn't a vialable option.

Dependencies

  • Web-server with PHP
  • MySQL Database

Features

  • Create pre-made "Voting Codes"
  • 1 vote per code
    • Code revoting validation
  • Lightweight
  • Responsive UI
  • Prepared SQL statements to protect against injection attacks\
  • List candidates randomly on screen to reduce "bias"

Room for improvement

  • Add validation to prevent more than alloted candidates
  • Remove hardcoded candidates
  • Add server time checks to auto open / close voting
  • ADA Compliance

Optional: Enable ReCAPTCHA

  1. Open validate_voter.php
  2. Change $reCAPTCHA head variable to 1.
  3. In form element, update <div class="g-recaptcha" data-sitekey="your_site_key"></div> with site key.
  4. Profit

Setup

  1. Extract all files into a PHP enabled webserver enviroment
  2. Create a MySQL Database
  3. Create DB Table with included 501cvote.sql file
  4. Configure DB connection with dbconnect.php

Usage

  1. One individual should generate and create VoterID's for eligible voters
  2. Email all eligible voters with Voter ID
  3. Open page for voting
  4. Close page for voting once complete
  5. Unassociated user not involved in steps 1 & 2 should access DB and count votes.

Additional Notes

  • Think about putting candidates in the db.
  • Use value/key saving votes for the candidates in the database.
  • relationalize the database entries

About

Lightweight open-source voting web application written in PHP.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •