DEV Community

Discussion on: Poker in Place

Collapse
 
goldensunliu profile image
Sitian Liu

sick app dude! Twiliio makes integrating video conferencing so much easier. any chance we can take a look at the source? I am curious how you implemented the backend. I am curious how far you got in terms of hiding unaurthorize state of the poker game from the client.

Collapse
 
nclarksf profile image
Nicholas Clark

Hey Sitian,

I'll open up the source in a day or so. I accidentally leaked a key before, so want to make sure I don't this time!

As for the state, I used Firebase/Firestore and rules around collections/sub-collections to allow access to certain documents (player cards) to only the player themself.

Collapse
 
goldensunliu profile image
Sitian Liu

Good job on the access control! It's amazing you did all that given the nature of it being a hack project! If I had only a few hours to spare, I might have just set up the poker state on the client side for the MVP.