# Covergen Frontend ## Quick startup For the frontend to function, the `covergen` wasm blob needs to be made available. This is not present in-tree but is easily prepared by running `make prepare-frontend` in the parent directory (i.e. the repo root). This will also do prepare the cross-cli's, but those are optional (you can run `make wasm-frontend` to just do the wasm). After this the usual `vite` / `vue3` commands apply: ```shell npm run dev ``` To prepare a proper final build: ```shell npm run build ``` ## A note on `wasm_exec.js` Go WASM requires a 'helper' library, `wasm_exec.js` to help with the bridging memory from Go <-> JS. This file is **different for each Go (1.XX) version**. The version bundled in-tree is for Go 1.16. If you run a different version, you might need to copy it from your local golang dist folder, usually `/usr/local/go/misc/wasm/wasm_exec.js`. If your distribution doesn't provide this file (e.g. Fedora) you can just copy it from the go main repo by going to [https://github.com/golang/go/blob/master/misc/wasm/wasm_exec.js](https://github.com/golang/go/blob/master/misc/wasm/wasm_exec.js) and using the GitHub branch selector to select the `release-branch.go1.XX` that matches your version of go (run `go version` to find out).