https://github.com/phmatray/webassembly-demo
A Go-based WebAssembly sample with React app! 😎
https://github.com/phmatray/webassembly-demo
go nodejs react webassembly
Last synced: 5 months ago
JSON representation
A Go-based WebAssembly sample with React app! 😎
- Host: GitHub
- URL: https://github.com/phmatray/webassembly-demo
- Owner: phmatray
- License: mit
- Created: 2019-03-04T14:53:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-26T05:39:31.000Z (almost 2 years ago)
- Last Synced: 2024-11-14T20:54:35.354Z (about 1 year ago)
- Topics: go, nodejs, react, webassembly
- Language: JavaScript
- Size: 1.28 MB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebAssembly demo with React and Go 1.12
A Go-based WebAssembly sample with React app!

## Installation
### _Client_
```bash
cd client
npm i
npm run dev
```
The client is available on https://localhost:8080
### _Server_
```bash
cd server
npm i
npm run dev
```
The server is available on https://localhost:3000
### _Build the WASM_
```bash
cd server/go
GOOS=js GOARCH=wasm go build -o main.wasm
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## Some ideas for pull requests
- Use Create-React-App
- Use TypeScript
- Style the exemple
- Add more scenarii using WebAssembly
- Write a script to install all dependencies with a single command
## Resources
- [How to take off with WebAssembly for Go in React](https://medium.freecodecamp.org/taking-off-with-webassembly-for-go-in-react-7c099bd907fa) by Chris Chuck
- [The world’s easiest introduction to WebAssembly🕹](https://medium.freecodecamp.org/webassembly-with-golang-is-fun-b243c0e34f02) by Martin Olsansky
- [Learning Golang through WebAssembly](https://www.aaron-powell.com/posts/2019-02-04-golang-wasm-1-introduction/) by Aaron Powell
## Licence
[MIT](LICENCE)