Build a Socket.io Realtime Voting Polling App in Node.js Using Chart.js in Browser Using HTML5 & Javascript

 

 

npm init -y

 

 

npm i socket.io express

 

 

index.js

 

 

 

 

client/index.html

 

 

 

 

Making the Voting App Secure

 

 

We only want to allow the users to vote only once as per their machine ip address. This can be done as follows

 

 

npm i useragent

 

 

index.js

 

 

 

Leave a Reply