An example Node.js, Express.js and Socket.io project showing how to build a stopwatch.
Go to file
Albert Stefanov bc8b805b2f Move control socket 2023-10-26 08:29:45 +03:00
models Upgrade for newer node versions 2023-10-25 20:42:51 +03:00
public Upgrade for newer node versions 2023-10-25 20:42:51 +03:00
views Upgrade for newer node versions 2023-10-25 20:42:51 +03:00
.gitignore Upgrade for newer node versions 2023-10-25 20:42:51 +03:00
Procfile changed web.js to app.js 2012-06-04 22:54:10 -07:00
README.md systemd 2023-10-26 07:58:37 +03:00
app.js Move control socket 2023-10-26 08:29:45 +03:00
hall-a.env systemd 2023-10-26 07:58:37 +03:00
hall-b.env systemd 2023-10-26 07:58:37 +03:00
openfest-timer@.service systemd 2023-10-26 07:58:37 +03:00
package.json Upgrade for newer node versions 2023-10-25 20:42:51 +03:00

README.md

OpenFest Timer

Deployment

Clone to /opt/timer. Put openfest-timer@.service in /etc/systemd/system. Requires NodeJS and npm.

systemctl daemon-reload
npm install
systemctl enable --now openfest-timer@hall-a.service
systemctl enable --now openfest-timer@hall-b.service

Based on Defcon

Defcon

Defcon is a stopwatch running on Node.js, Express.js, and Socket.io. It is intended to be a good starting point if you're just learning to use web sockets. It currently uses xhr-polling so it is compatible with Heroku.

Who's it for?

I originally wrote Defcon over four blog posts introducing Socket.io and deploying to Heroku. Please checkout the posts on my site, robdodson.me