Deprecation Notice: As of 2024-03, this project is no longer maintained. I'm happy to look over any patches, but haven't put any effort into keeping up with dependency upgrades, testing newer OS versions for deployment, etc.
For my family <3
Euchre is a card game. It is our "family game", frequently played at family reunions due to its ability to both engage players and be a game you can sit back and chat over without thinking too much.
With the COVID-19 social-distancing, we're suddenly unable to play, so we started to look at options to play online.
Disappointed with the state of the online options, we decided to make our own.
p5-Mojolicious
and
p5-Class-Tiny
packages are sufficient to run the server!On Linux:
$ npm i
$ cpanm --installdeps .
On OpenBSD (6.9):
$ doas pkg_add node p5-Mojolicious p5-Class-Tiny
$ npm i
The release version is a subset of the repo, built into a separate directory for easier deployment.
$ ./bin/build.sh
$ ./build/gloat.pl daemon
To actually daemonize (in a production environment), run with -m production
.
This will log to /var/log/gloat, which should exist and be writable to the
server.
$ ./build/gloat.pl daemon -m production
For fast iteration on the code, we have a npm
script to watch the JS files with
esbuild
and rebuild the bundle on the fly:
$ ./gloat.pl daemon # fire up backend first
$ npm run dev