Skip to content

Aggregates preferences via the schulze method voting system (a condorcet method)

License

Notifications You must be signed in to change notification settings

SeanShubin/schulze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schulze

Aggregates preferences via the schulze method voting system (a condorcet method)

Setup

  • Install Datomic
  • Launch Datomic
  • Generate schulze server one-jar
  • Launch schulze server one-jar

Install datomic

Get datomic from get-datomic and follow the installation instructions
In the datomic directory, run bin/maven-install
Edit the pom.xml file so that the datomic version matches, for example:

<dependency>
    <groupId>com.datomic</groupId>
    <artifactId>datomic-free</artifactId>
    <version>0.9.4956</version>
</dependency>

Launch Datomic

In the datomic directory run

bin/transactor config/samples/free-transactor-template.properties

Generate schulze server one-jar

from the schulze project directory, run

mvn clean package

Launch schulze server one-jar

The parameters to schulze-server.jar are as follows

  1. The port for the schulze voter application
  2. The datomic uri

For example, if you want to use port 4000 and the datomic uri datomic:free://localhost:4334/schulze

java -jar server/target/schulze-server.jar 4000 datomic:free://localhost:4334/schulze

Once the schulze application is launched, try it out by navigating to

http://localhost:4000
http://localhost:4000/schulze/introduction.txt

Familiarize yourself with the API

To understand the API, start with SchulzeHandler

About

Aggregates preferences via the schulze method voting system (a condorcet method)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published