057fb0fd640f0c781e542465e7a543c792acb669
Voting System Prototype
Basic format for RTC voting application using Node/Express and socket.io.
To view on your system
- Clone the project
- In root directory run
npm install - Change into
clientand again runnpm install - In root directory, run
node . - Express will serve
index.htmlat localhost port 8088
Interacting with application
Different instances of the site in different browser windows will demonstrate syncronized state locally. The two character identifier corresponds to the first two character's of each user's unique socket ID. This code also applies to each individual voter.
Logic is built out such that a single voter can only submit a single vote, while also retaining the ability to change their vote. Each "vote" emits a socket event which updates the DOM if the logic flow determines it is necessary to do so.
Description
Languages
HTML
82.5%
JavaScript
17.5%