POC of a Next.js project that uses Golang written code using node-gyp on the server and WASM on the client
| Tool | Version |
|---|---|
yarn |
>1.22 |
node |
>12 |
go |
=1.16 |
tinygo |
=0.17 |
Install dependencies:
$ yarnCompile add.wasm and add.node packages:
$ yarn compileYou can run unit tests to see if everything compiled fine:
$ yarn test:unitBuild the Next.js application:
$ yarn buildStart production version of the application:
$ yarn startFinally, run e2e tests, or check the http://localhost:3000 yourself:
$ yarn test:e2e