Skip to content

simple node server & app to vote & show the results using server sent events

Notifications You must be signed in to change notification settings

AndrewPoyntz/server-sent-events-voting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server-sent-events-voting

simple node server and app to vote and show the results using server sent events also includes a tic-tac-toe game on /game

To use:

  • npm install
  • Create a self signed certificate - you need 'server.crt' and 'server.key' in the root(how?), or use a real one...
  • npm run dev
  • Go to https://localhost
  • open the same url in a different browser,
  • vote in one of the browsers and see it magically update in the other
  • /admin lets you administer the vote (change the options etc) - clients will get an update whe you do this
  • /game contains a tic-tac-toe game, requires 2 clients to pick their side, then any other clients are observers of the game with realtime updates

About

simple node server & app to vote & show the results using server sent events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published