I'm looking to make a web-app/game where people do not need an account to play, but the game is room based, and once the game has started the room closes. I'm most familiar with Spring/REST services as a back-end.
The best example for this type of system is the Jackbox Games backend (Quiplash, Drawful, etc). The way theirs works is:
- Go to landing page
- Enter desired username and also a "room code" of the room to join (note: anyone can join, no account needed)
- Click start game when all users are in
- Play game, no more users can join
Anyone have any ideas of how to approach this?
I'm familiar with having users authenticate against a database on a login call to the server. And also I'm pretty familiar with how I might pass around payloads via JWT, but I'm having a bit of trouble piecing together how I might create the rooms and then close them. Also keeping users "logged in" until the game ends.
Any suggestions would be wonderful.
Thanks.