Once upon a time I was engaged in a project on an order, the essence of this project is an online casino. Unfortunately, at some point, something didn't work out and the project was closed. Despite this, a significant part of the work has already been done and was functioning quite well. The development was carried out in PHP /NodeJS – the server part, HTML5/JS /etc – the client part with a multirender on WebGL /Canvas. I intentionally did not use the OOP approach on the server side, well, other things were done in a not very modern style, however, I think the sources may be useful to someone