Skip to content

Hardhat and React.js Decentralized application similar to buymeacoffee. Smart contract is written in solidity and deployed to SEPOLIA Testnet.

Notifications You must be signed in to change notification settings

manraj2712/buy-coffee-with-eth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buy Me a Coffee dApp

The Buy Me a Coffee decentralized application (dApp) is a solution for receiving cryptocurrency donations in a decentralized and transparent manner.

Smart Contract Address

Preview

Technologies Used

  • Front-end: React.js
  • State Management: Context API
  • Styling: Tailwind CSS
  • Smart Contracts: Solidity
  • Blockchain Development Tools: Hardhat
  • Ethereum Testnet: Sepolia Testnet
  • Blockchain API: Alchemy

Getting Started

To get a local copy of the Buy Me a Coffee dApp up and running, please follow these simple steps.

Prerequisites

Here is what you need to be able to run the Buy Me a Coffee dApp:

  • Node.js (Version: >=14.x)
  • A web browser with MetaMask extension (for interacting with Ethereum)
  • An Alchemy API key for accessing the Ethereum network
  1. Clone the Repository:

    git clone https://github.com/manraj2712/buy-me-a-coffee-with-eth.git
  2. Install Dependencies:

    cd buy-me-a-coffee-with-eth
    yarn install
  3. Set Up Environment Variables: To run this project, you will need to add the following environment variables to your .env file.

    ROOT DIRECTORY

    • PRIVATE_KEY
    • SEPOLIA_URL
    • SEPOLIA_API_KEY

    CLIENT DIRECTORY

    Then create a .env file inside the /client directory.

    cd client

    • VITE_CONTRACT_ADDRESS
  4. Deploy contract on sepolia testnet:

    npx hardhat run .\scripts\deploy.js
  5. Copy generated contract client

    cp /artifacts/contracts/coffee.sol/coffee.json /client/src/contract/
  6. Start Frontend

    cd /client
    yarn dev

About

Hardhat and React.js Decentralized application similar to buymeacoffee. Smart contract is written in solidity and deployed to SEPOLIA Testnet.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published