This is a prototype realtime anonymous voting application which is written using nodejs and its socket.io package. This will be extended to have a mysql database connection.
- Node.js
- Socket.io
- express JS
- Hjs for page rendering
- mysql package (this part is currently not commented and subjected to extend)
- Clone the repo locally
- Download and install node and npm (www.nodejs.org)
- cd into the cloned directory and run
npm install
to install the dependancies (includes mysql but never used :-) ) - Visit http://localhost:3000 and got to "Event perception" link in one browser window (Page A)
- Open another window and visit http://localhost:8000/ and go to "Event Perception graph" link(Page B)
- Note that the initial dataset for the graph has been mocked
- You can see the graph shows the average rating as you vote!