To run the project locally, follow these steps.
- Clone the project locally and install the dependencies:
git clone [email protected]:burdianov/etb-esqrow.git
# hardhat
cd etb-esqrow
npm install
# frontend
cd frontend
npm install
- Start the local Hardhat node
npx hardhat node
- While in the root directory, with the network running, deploy the contract to the local network in a separate terminal window
npx hardhat run scripts/deploy.js --network localhost
-
Copy the contract address from the terminal and assign it to the VITE_CONTRACT_ADDRESS environment variable in the .env file inside frontend directory
-
Configure .env file inside the root directory:
ALCHEMY_KEY=https://eth-rinkeby.alchemyapi.io/v2/your-alchemy-key
PRIVATE_KEY=your-rinkeby-private-key
- Inside frontend directory, launch the project
npm run dev
https://etb-esqrow.netlify.app/
https://rinkeby.etherscan.io/address/0xEe21CD5d318a6634f840d6F64B4dc6f2ad9DB492
-
Register as a Seller
-
Switch accounts and register as a Buyer
-
Being still in the Buyer role, create an Escrow.
-
etc...
- hardhat
- solidity
- openzeppelin
- vite
- ethers
- tailwind
- framer-motion
- recoil