- Golang 1.21
- Node 21 / NPM
- Taskfile
- Install Deps
- Clone Repo
task npm-deps
task run
- Visit http://127.0.0.1:8000 in a web browser
task run
Breakdown
- Build the webapp client (ie app.wasm)
- Run the server executable
Much thanks to pojntfx/liwasc for demystifying the go-app static build process a bit
(in the GH action workflow)
- Clone repo
- Install Deps
task gh-pages
- Release the newly created
/docs
directory to the gh-pages branch
task gh-pages
Breakdown
- Build the webapp client (ie app.wasm)
- Run the build executable to use go-app's internal static site generation function (creates
/docs
) - Move the contents of the web folder (the output of the the webapp client build) into the
/docs
directory