Skip to content

nodejs server and frontend to view live field results

Notifications You must be signed in to change notification settings

openath/fieldresultsclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a demonstration of how we can display field event results, live, so that spectators can follow the action. We're "replaying" a competition in a loop for demo purposes. For an event in progress, an official with a phone or tablet would input the throws, and anyone watching - parents and friends at trackside, or anywhere in the world - can follow the state of the match easily.

Server.js (very basic):

Nodejs (https://nodejs.org/en/)

Node modules:

express (npm install express) // will be removed soon as no longer a requirement.

socket.io (npm install socket.io) // Handles websocket broadcasts.

forever (npm install forever) // keeps server.js running when it goes belly up

index.html:

This now does not need to be served from node server and can be loaded independantly from non-ssl servers.

examples/rawdemo.html:

Most stripped down basic client posible. Writes the raw json results from the server to the console.

About

nodejs server and frontend to view live field results

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published