game
object and is then made available to moves (while not ever being sent over the network or stored in the DB).
Game
object, and it looks strange to me.Game
object both in client and server, and I don't really know how to manage for prod environment.
node -r esm src/server.js
). The problem is when I try to deploy in prod.server.js
I need to reference the Game
object . But because my webapp runs in another container, it doesnt find it. I tried to find examples in the issues in Github. I could only find nginx conf. I don't know if someone already tried to have client and server in 2 different containers (maybe this is unecessary)
/game/tic-tac-toe/create
http://localhost:8000/games/tic-tac-toe/Inja0m8Dq/join?playerID=0&playerName=Toto
playerID is required