Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.51 KB

File metadata and controls

24 lines (18 loc) · 1.51 KB

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, but once was at: vote.cumzon.ee.

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