Skip to content

A voting site for the nation of Finland on EarthMC, which uses the Instant-runoff voting system.

Notifications You must be signed in to change notification settings

jevk/RCVElectionSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Finnish elections voting site for EarthMC

This is a voting website for the nation of Finland on EarthMC. It employs the Instant-runoff voting system, which is a ranked-choice voting system, which eliminates candidates in rounds and distributes their votes to the other candidates, for calculating the results of the election.

The site is not currently live at vote.cumzon.ee, but will return someday.

Requirements

Usage

  1. Install the required libraries
  2. Add candidate names to settings.json in the correct json format (see example settings.json)
  3. Set the opening and closing times in settings.json in the correct json format (yet again, see example settings.json). The timestamps are in Unix time (seconds since the epoch). Here's a useful tool for generating these timestamps
  4. If running/testing locally run application.py, otherwise run waitress_server.py or run cli.py and execute the command "start"

Disclaimers

  • Currently only supports HTTP, HTTPS support is planned in the future
  • The code is written in a hurry in about 2.5 days and may have a lot of bugs. If problems occur, please open an issue here
  • Most likely won't run on Linux on port 80 without sudo perms

Credits:

Frontend by Jevk

Backend by Emerald

About

A voting site for the nation of Finland on EarthMC, which uses the Instant-runoff voting system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published