shuklamaneesh23 / chaiDapp

Home Page:chaidapp-a050c5.spheron.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chai Buying DApp

🍵 This is a beginner-friendly decentralized application (DApp) for purchasing chai using cryptocurrency while including a personalized message. ☕️

Tutorial Video

Chai Buying DApp Tutorial English

Chai Buying DApp Tutorial Hindi

Watch my tutorial video to learn how to use the Chai Buying DApp!

Getting Started

To get this DApp running, follow the steps below:

Clone the Repository

git clone <repository-url>

Contract Compilation and Deployment

  1. Install dependencies:

    npm install
    
  2. Compile the contracts:

    npx hardhat compile
    
  3. Create a .env file:

    • Mention the QuickNode Goerli/Sepoli URL and your private key in the .env file.
  4. Deploy the smart contract:

    npx hardhat run scripts/finalDeploy.js --network <network-name>
    

    Replace <network-name> with the desired network (e.g., Goerli, Sepoli).

Frontend Setup

  1. Ensure you have MetaMask installed in your browser.

  2. Navigate to the client directory:

    cd client
    
  3. Install frontend dependencies:

    npm install
    
  4. Start the frontend server:

    npm start
    

Usage

Once the DApp is set up:

  1. Connect your MetaMask wallet to the DApp.
  2. Send cryptocurrency to purchase chai.
  3. Write a sweet message to accompany your purchase.
  4. Enjoy your chai!

About

chaidapp-a050c5.spheron.app


Languages

Language:JavaScript 72.1%Language:HTML 16.1%Language:CSS 6.9%Language:Solidity 4.9%