A live gambling-room simulation with web sockets and JS. A creator hosts an event, and people join in and bet on the odds of the outcomes of the event.
-
Backend
- Node (TS) + Express
- GraphQL (TypeGraphQL)
- TypeORM
- Postgres
- GraphQL Subscriptions (for web socket connections)
-
Frontend
- React
- URQL (To consume the GraphQL API)
The calculation for individual wagers won by a participant is inspired by the popular 'Predictions' feature in Twitch. The math behind their calculation was demystified by a Reddit user
This work on this project is still in the initial stages, stay tuned for more!