- JDK (v11.0.10.9)
- Tom Cat
- JSP
- Struts2
- HTML & CSS
- Ngrok
- Facebook API
- Visual Studio Code
In this assignment we had to build a elections' system where administrators can create and manage candidates, electors and votes, in real time.
By other side, we had also to build a system that allows electors to create an account using a common login authentication (email+password) or their Facebook accounts.
After selecting a candidate, an elector can share a link to the voting page of the candidate on his Facebook feed.
Keep all the files and directories as they are, otherwise, is not guaranteed it works.
-
Step 1️⃣
- Run RMI Server with
java -jar rmiserver.jar
. Then server will ask you for an ip address.- If you want to that be the main server, then you must click enter
- Otherwise you shall input the IPv4 address of the remote machine you want to connect with.
- NOTE! This process is also applied to Administrator Console and Voting Table
- If you want to run a Secundary Server you just need to run it one more time.
- You can also run RMI Server using
make server
(make sure you have make syntax on your machine)
- Run RMI Server with
-
Step 2️⃣
- Run
webserver.war
with a Tomcat server for example, to deploy the website.
- Run
-
Step 3️⃣
- Do not forget that you must have some MultiCast Servers running, so the vote tables turn on.
- To run them you just have to do
java -jar server.jar
ormake mcserver
- NOTE! This process is similar to RMI Server, so you must input the IPv4 address of the Main Server you want to connect
- When you connect it you also must input another IPV4 (and a port), wich is the one where the MultiCast group will be allocated
-
Step 4️⃣
- And that's it, you might have you entire system working fine now.
Licenciatura em Engenharia Informática - Universidade de Coimbra
COMPILADORES - 2020/2021
Coimbra, 26 de maio de 2021
🎓 Filipa Rodrigues Santos Capela - 🎓 Rodrigo Fernando Henriques Sobral
Have a look at the license file for details