This is an Escrow Dapp built with Hardhat.
There are three top-level folders:
/app
- contains the front-end application/contracts
- contains the solidity contract/server
- contains the server that stores the deployed smart contracts/tests
- contains tests for the solidity contract
This is an image of the page when is active
Install dependencies in the top-level directory with yarn
.
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.
cd
into the /server
directory and run yarn
To run the server run node index
from the /server
directory. Now the smart contracts that you deploy will be saved in the server as long as it's active.
cd
into the /app
directory and run npm install
To run the front-end application run npm start
from the /app
directory. Open http://localhost:3000 to view it in your browser.