neu-fi / regen-bingo

Monorepo for both backend and contract developments of Regen Bingo!
https://regen.bingo
2 stars 1 forks source link

regen-bingo

A global trustless Bingo game where half of the proceeds go to public good funding.

Development

Use Node 16+ and Yarn 3.

Tab 1

Install dependencies

yarn

Run Hardhat Chain

yarn chain

Tab 2

While keeping the yarn chain tab open, follow the instructions below in a seperate tab.

Deploy the contract

yarn deploy

While deploying if the hardhat chain crashes due to heap allocation error, please use --max-memory parameter. In order to do that, add --max-memory <memory-size> to the packages/backend/package.json. e.g.

hardhat deploy --max-memory 8192 --export-all ../frontend/contracts/hardhat_contracts.json

Run the frotnend

yarn dev

Documentations