A very simple tic-tac-toe project. Really I'm just trying out svelte and experimenting with websockets, so I coded this up in a day or two. Demo should be alaviable here, but I don't think I'll leave the server open forever...
npm installed.npm install.-To launch test server: npm run dev.
Please note that in debug mode the page will try to connect to localhost:9000 instead of the production server! (this is set up in rollup.config.js via the replace plugin)
npm run buildI've used pipenv, that should manage dependencies for you.
To launch server:
serverpipenv run python3 main.pysudo pip3 install websocketscd serverpython3 main.pyThis code requires websockets 8 which requires python 3.7! It is still possible to run the server on rapsbian, nust you have to build python from source which takes a long time.