This is an Escrow Dapp built with Hardhat.
There are three top-level folders:
/dapp
- contains the front-end application/contracts
- contains the solidity contract/tests
- contains tests for the solidity contract
Install dependencies in the top-level directory with npm install
.
After you have installed hardhat locally, you can use commands to test and compile the contracts, among other things. To learn more about these commands run npx hardhat help
.
Compile the contracts using npx hardhat compile
. The artifacts will be placed in the /app
folder, which will make it available to the front-end. This path configuration can be found in the hardhat.config.js
file.
To run the front-end application move into the dapp
folder and run
yarn
yarn start
# or you can use npm
npm install
npm start
You can learn more about React here.