This repo's layout is designed to be easily integrated with Google Functions. This repo is gitpod compatible.
Deployment to Google Functions v1 seems to be quite straightforward,
- just paste
package.json,index.jsandallowlist.jsfrom this repo, - modify contents of
allowlist.jsto your own list, - update Entry point value from
helloWorldtomerkleTreeProofGenerator, - Press Deploy!
Then your frontend should fetch from your endpoint like this:
const proof = await fetch()
// ...
// use |proof| in your minting function.
To make testing easier, but preserve the main purpose of this repo, you need to install express manually:
$ npm install -g express
Then you can update allowlist.js and run HTTP-server.
$ node testserver.js
If you are satisfied with results, YAY, thanks for chosing us.
-- Let's code team