Start an HTTP server serving index.html. This can be done with Node:
npx http-server
Or Python:
python -m http.server
Or any other way that suits you.
This repo contains a MicroPython WASM build in the folder micropython-build, generated by a GitHub Action. If you wish to manually build MicroPython, you can do so using Docker.
Warning: this will delete and replace all contents of micropython-build.
- Make sure the micropython submodule is actually populated on disk before building.
Run:
git submodule update --init --recursive - Build the Docker image. One-time step — only needs repeating if you edit
dockerfileordocker-build.sh. Run:docker build -f dockerfile -t micropython-wasm-builder . - Run the build. This mounts your current directory into the container at
/app, runsmake, and copies the output back out to your host. Run:docker run --rm -v "$(pwd)":/app micropython-wasm-builder - Check the output. You should now have
micropython.mjsandmicropython.wasmsitting inmicropython-build/.