- Java Development Kit 8 (JDK 8) or Docker
vote <candidateId>
: Used to vote for the candidateresult <candidateId>
: Used to see the candidate's number of votesexit
: Used to exit the system
javac -d bin -sourcepath src src/*.java src/**/*.java
java -cp bin Server
java -cp bin Client
echo <READ_PACKAGES_TOKEN> | docker login docker.pkg.github.com -u <USERNAME> --password-stdin
docker pull docker.pkg.github.com/puc-disciplinas/election-java-rmi-gamoch/election
docker tag docker.pkg.github.com/puc-disciplinas/election-java-rmi-gamoch/election election
docker run -it --rm --net host -v election-data:/data election Server
docker run -it --rm --net host election Client