Notes: There is additional error handling which would be nice to add later. For example, if the backend disconnects from a client (e.g., in local dev), the client will not try to reconnect. I wanted to get eyes on the code before focusing on these sorts of smaller details, though.
Testing: Install dependencies with pip3 install -r backend/requirements.txt, then run the backend with python3 test_api.py and click the link it spits out.
Notes: My editor rewrote the line endings in some of these files, so I'd recommend reviewing in "ignore whitespace" mode (append ?w=1 to the file viewer URL).
Notes: There is additional error handling which would be nice to add later. For example, if the backend disconnects from a client (e.g., in local dev), the client will not try to reconnect. I wanted to get eyes on the code before focusing on these sorts of smaller details, though.
Testing: Install dependencies with
pip3 install -r backend/requirements.txt
, then run the backend withpython3 test_api.py
and click the link it spits out.Notes: My editor rewrote the line endings in some of these files, so I'd recommend reviewing in "ignore whitespace" mode (append
?w=1
to the file viewer URL).