🍵 This is a beginner-friendly decentralized application (DApp) for purchasing chai using cryptocurrency while including a personalized message. ☕️
Chai Buying DApp Tutorial English
Chai Buying DApp Tutorial Hindi
Watch my tutorial video to learn how to use the Chai Buying DApp!
To get this DApp running, follow the steps below:
git clone <repository-url>
-
Install dependencies:
npm install
-
Compile the contracts:
npx hardhat compile
-
Create a
.env
file:- Mention the QuickNode Goerli/Sepoli URL and your private key in the
.env
file.
- Mention the QuickNode Goerli/Sepoli URL and your private key in the
-
Deploy the smart contract:
npx hardhat run scripts/finalDeploy.js --network <network-name>
Replace
<network-name>
with the desired network (e.g., Goerli, Sepoli).
-
Ensure you have MetaMask installed in your browser.
-
Navigate to the
client
directory:cd client
-
Install frontend dependencies:
npm install
-
Start the frontend server:
npm start
Once the DApp is set up:
- Connect your MetaMask wallet to the DApp.
- Send cryptocurrency to purchase chai.
- Write a sweet message to accompany your purchase.
- Enjoy your chai!