A decentralized "Buy Me a Coffee" application built using Next.js, Thirdweb,Typescript, Tailwind CSS, and blockchain technology. This app allows users to connect their wallets, interact with smart contracts, and make donations seamlessly.
- Wallet Connection: Connect your wallet to interact with the app.
- Smart Contract Integration: Powered by blockchain for secure and transparent transactions.
- Donation System: Send donations with messages.
- Responsive UI: Designed with Tailwind CSS for a seamless experience across devices.
- Frontend: Next.js, Typescript, thirdweb
- Blockchain Integration: Thirdweb, Solidity
- UI Design: Tailwind CSS
Ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/your-username/blockchain-coffee-app.git cd blockchain-coffee-app
-
Install dependencies:
npm install # or yarn install
-
Configure environment variables:
- Create a
.env.local
file in the root directory. - Add the following:
NEXT_PUBLIC_THIRDWEB_CLIENT_ID=your_thirdweb_api_key
- Create a
-
Start the development server:
npm run dev # or yarn dev
The app will be available at http://localhost:3000.
- Use Thirdweb to create and deploy a smart contract.
- Save the deployed contract address and API key for integration.
- Connect your wallet by clicking the Connect Wallet button.
- Enter your donation message and amount.
- Confirm the transaction in your wallet.
- View the transaction history on the blockchain.
blockchain-coffee-app/
├── components/ # Reusable UI components
├── pages/ # Next.js pages
├── styles/ # Tailwind CSS styles
├── public/ # Static assets
├── utils/ # Helper functions
└── contracts/ # Smart contract ABIs (optional)
Contributions are welcome! Feel free to fork the repository and submit a pull request.