Frontend for interacting with the Breadchain Crowdstaking contract.
This project uses volta to pin specific versions of node and yarn. You can install it here.
Create an .env
file based on .example.env
.
Then run:
# install dependencies and run the dev server
$ yarn && yarn dev
# or build for production
$ yarn build
Run a chain locally and fund 3 wallets with DAI:
$ yarn hardhat:dev
Add a hardhat wallet to metamask to test application manually.
To connect to ethernal and inspect blocks/transactions on your local chain set ETHERNAL_EMAIL
and ETHERNAL_PASSWORD
variables in your .env
.
Run e2e tests against local hardhat node. This script kills anything running on localhost:8545
so tests can be run against a fresh clone of the chain.
$ yarn e2e:local
# run the book
$ yarn storybook