This is a maven multimodule project developed in Java for simulating electoral systems.
Currently the following methods or algorithms are supported:
- D'Hont Method
- Sainte-Laguë Method
- Droop Quota
- Hare Quota
- Imperiali Quota
You need Java 8+ and maven. Use the following command to build the applications:
$ cd electoralsystems
electoralsystems $ mvn install
Use the following command to launch the GUI/Swing Application:
electoralsystems $ mvn -f app/pom.xml spring-boot:run
Example of D'Hont Algorithm Results:
Use the following command to launch the API Application:
electoralsystems $ mvn -f api/pom.xml spring-boot:run
URL swagger: http://localhost:8080/v2/api-docs
URL swagger-ui: http://localhost:8080/swagger-ui.html