This is just a part of our contribution to the Ethonline hackathon.
This is a demo project that includes buidler-react as a plugin to generate the react component that is used to display some example content.
Here is the code for the buidler react plugin. Lerna will symlink this package to @symfoni/buidler-demo so we can use it there.
Here is the code for the buidler storage plugin. Lerna will symlink this package to @symfoni/buidler-demo so we can use it there.
- Install lerna globally
npm i -g lerna
- Run
yarn run bootstrap
// This will install all packages and build
You need three processes running for the full development enviroment
yarn run watch
watches changes in buidler-react plugin. Lerna will then symlink this package to be used in buidler-demo.yarn run node
runs up a blockchain node, generate typechain interfaces, compile and deploy smart-contracts then watch for changes in smart contracts and deploy them.yarn run frontend
runs a dev-server for a create-react-application from packages/buidler-demo/frontend that is served on http://localhost:3000/ with hot-reloading. This will also reload when you change smart contracts
yarn run pubish
builds all packages and published them to npm with version bump.
- Use Metamask or some other wallet provider (https://metamask.io/).
- Use Mnemonic "shrug antique orange tragic direct drop abstract ring carry price anchor train".
- Set the Network to custom rpc at "http://127.0.0.1:8545/".
Demo should be working!