Aggregates preferences via the schulze method voting system (a condorcet method)
- Install Datomic
- Launch Datomic
- Generate schulze server one-jar
- Launch schulze server one-jar
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>
In the datomic directory run
bin/transactor config/samples/free-transactor-template.properties
from the schulze project directory, run
mvn clean package
The parameters to schulze-server.jar are as follows
- The port for the schulze voter application
- 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
To understand the API, start with SchulzeHandler