There was a very similar game that one of the big Perl authors (Ovid) put together a few years ago called Tau Station. You can also see a bunch of blog posts on how Ovid built it. Basically Perl + Sql and a little JS I think.
https://taustation.space/