Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manraj2712/buy-coffee-with-eth
Hardhat and React.js Decentralized application similar to buymeacoffee. Smart contract is written in solidity and deployed to SEPOLIA Testnet.
https://github.com/manraj2712/buy-coffee-with-eth
hardhat reactjs sepoliatestnetwork smartcontracts solidity
Last synced: about 2 months ago
JSON representation
Hardhat and React.js Decentralized application similar to buymeacoffee. Smart contract is written in solidity and deployed to SEPOLIA Testnet.
- Host: GitHub
- URL: https://github.com/manraj2712/buy-coffee-with-eth
- Owner: manraj2712
- Created: 2023-10-11T11:54:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-22T13:29:59.000Z (about 1 year ago)
- Last Synced: 2023-10-22T21:29:33.545Z (about 1 year ago)
- Topics: hardhat, reactjs, sepoliatestnetwork, smartcontracts, solidity
- Language: TypeScript
- Homepage: https://buycoffeewitheth.netlify.app/
- Size: 5.48 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://sepolia.etherscan.io/address/0x548a7b8dE9133E77B02C7B79c7Db344cCc4F8DaE)**
![Preview](https://github.com/manraj2712/buy-coffee-with-eth/assets/65106261/6fbfd20e-0f0c-41fd-96c8-d294768899fd)
## 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 network1. **Clone the Repository:**
```bash
git clone https://github.com/manraj2712/buy-me-a-coffee-with-eth.git
```2. **Install Dependencies:**
```bash
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:**
```bash
npx hardhat run .\scripts\deploy.js
```5. **Copy generated contract client**
```bash
cp /artifacts/contracts/coffee.sol/coffee.json /client/src/contract/
```6. **Start Frontend**
```bash
cd /client
yarn dev
```