bwiggs / go-nexrad

NEXRAD Data Processing with Go
https://bwiggs.com/projects/go-nexrad/
MIT License
26 stars 12 forks source link

Port to web app using WebAssembly #10

Closed SteepAtticStairs closed 2 years ago

SteepAtticStairs commented 2 years ago

I have made a super rudimentary version of this project using wasm, and it was taken almost entirely from go-wasm-pdfcpu.

To build yourself, run

git clone https://github.com/bwiggs/go-nexrad.git
cd go-nexrad && cd cmd && cd nexrad-render

GOOS=js GOARCH=wasm go build -o nexrad.wasm

I struggled a while on Go 1.18 because I was getting some errors, but then I downgraded to 1.12 and it worked fine. Specifically go version go1.12 darwin/amd64.

Then put the binary under the webapp directory I have made:

git clone https://github.com/SteepAtticStairs/go-nexrad.git
cd go-nexrad && cd webapp

These instructions are just if you want to build it yourself. A live demo of what I (but mostly the author of go-wasm-pdfcpu) have done can be found here: https://steepatticstairs.github.io/go-nexrad/webapp/

I plan to do a lot more cleanup.

Andrew

SteepAtticStairs commented 2 years ago

closed this PR because I merged the webapp branch into master so I can be working on the same code for both SVG rendering and the web app.