An i8080/z80 retro computer emulator in JavaScript and Go
- Go (with WASM support)
- Node.js and npm
From the project root, run:
GOOS=js GOARCH=wasm go build -o static/main.wasm ./cmd/wasmCopy the Go WASM runtime to the static directory:
cp $(go env GOROOT)/lib/wasm/wasm_exec.js static/npm installIf you want to remove the dist/ directory and start with a fresh build, run:
npm run cleannpm run buildThe production-ready files will be in the dist/ directory.
npm run serveThis will serve the dist/ directory at http://localhost:4173 (default).
npm run devThis will serve the app with hot reload at http://localhost:3000 (default).