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.js
andallowlist.js
from this repo, - modify contents of
allowlist.js
to your own list, - update Entry point value from
helloWorld
tomerkleTreeProofGenerator
, - 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