Denis b63f2da22c Backend - Add jsonschema module (#32)
* add jsonschema module

* remove unused files

* small refactoring

* remove hardcoded host and port arguments

* remove hardcoded host and server arguments

* add direct response flag and to raw methods

* fix config lookup

* fix is players full method

* use config singleton for server host and port arguments

* add join message schema

* move testclient module

* move client tast module

* add python typehint module

* rename as_dict method to as_raw

* delete message_raw file

* add client state module

* add more type modules

* update json schemas

* add support for json schema validation

* add ready property to client

* add client getter and adder methods

* add repr dunder method

* fix client context not being updated with new client id

* add support for toggle ready message

* only toggle ready if client is player

* add toggle role message

* add rejoin message

* remove old files

* fix import

* remove unused import

* update unit tests to work with new message classes

* make schema dir not user configurable

* add config template

* rename client id getter method

* make client id none-ed
2026-03-24 20:57:41 +01:00
2026-03-24 20:57:41 +01:00
2026-01-05 19:25:41 +01:00

A beer pong auto battler with stupid people.

Frontend

To run the front-end, go into src/frontend and run: npm install && npm run dev.

Backend

To setup the Python environment go into src/backend and run: python -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt

To start the server run python run_server.py. To execute the unit tests run python -m unittest.

S
Description
A beer pong auto battler with stupid people.
Readme
3.8 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 60%
Python 37.9%
JavaScript 1.8%
HTML 0.2%