i gotta develop an online voting system for the student elections using blockchain technology for my university project. following are the basic requirements for my system: 1. students should be able to cast vote 2. real time results of the elections.
I am using truffle, testrpc and vanilla javascript for now to connect my smart contract with the front end , i have decided that whenever a voter cast vote to their preferred candidate, that transaction of voting process or their votes is stored in the blockchain . i am trying to implement php to make my front end dynamic and mysql for backend just to add candidatees or for the login process of the students. but i am confused about whether to add voters and candidates in the blockchain or the new proposals for the elections. can someone help me out here please? Thank You