MPyC Web is a port of the MPyC Python framework for Web Browsers. It uses:
- PyScript for running Python code in the browser via WebAssembly
- PeerJS for peer-to-peer connections via WebRTC
- Install nix
- Linux with Systemd or MacOS - https://github.com/DeterminateSystems/nix-installer/
- Linux without Systemd - https://nixos.org/download.html
- Start a development shell with all necessary tools -
nix develop --impure
- Install the JavaScript dependencies -
yarn install
yarn dev
yarn build
python -m http.server -d dist