Coder Social home page Coder Social logo

calc1f4r / buy-me-a-coffee Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 314 KB

A web3 implementation of buymeacoffee.com allows a developer to get some crypto based on his work

Home Page: https://buy-me-a-coffee-brown-one.vercel.app/

JavaScript 1.45% TypeScript 96.07% CSS 2.48%
buy-me-a-coffee next react wagmi web3

buy-me-a-coffee's Introduction

🌟 Web3 Buy-me-a-coffee

πŸ“ Overview

This project is a web application built using React with Next.js, incorporating Web3 technology to create a decentralized platform for gifting coffee to the developer. Inspired by the concept of popular "buy me a coffee" websites, this application allows users to gift coffee to the developer using cryptocurrencies like Matic (MATIC). Users can input their name, a message, and choose the price of the coffee they want to gift. They need to connect their wallets to the application to complete the transaction.

web3BuymeAcoffee.mp4

✨Features

  1. Gift Coffee: Users can input their name, a message, and select the price of the coffee they want to gift to the developer. Upon clicking the "Buy Me A Coffee" button, the transaction is executed through a Web3 contract.
  2. Dynamic Price Selection: Users can choose from different price options (1, 2, 5, or 10 Matics) for gifting coffee.
  3. Transaction Status Feedback: The application provides feedback to users on the status of their transactions, displaying messages indicating whether the transaction is being executed or has been confirmed.
  4. Coffee Gift List: The application displays a list of coffee gifts received by the developer, including the name of the sender, the message accompanying the gift, and the number of coffees gifted.

πŸš€ Getting Started

To run this application locally, follow these steps:

  • Clone this repository to your local machine.

  • Navigate to the project directory.

  • Install dependencies by running npm install or yarn install.

  • Start the development server by running npm run dev or yarn dev.

  • Open your web browser and go to http://localhost:3000 to view the application

    Note in the root folder there is a env file, fill the variable named NEXT_PUBLIC_PROJECT_ID with token got from wallet.connect.com

πŸ”§ Dependencies

  • React: A JavaScript library for building user interfaces.
  • Next.js: A React framework for building server-side rendered (SSR) and statically generated web applications.
  • Wagmi: A library for interacting with Web3 contracts and accounts, providing hooks for reading and writing contract data.

πŸ™Œ Contributing

Contributions to this project are welcome. You can contribute by submitting bug reports, feature requests, or pull requests. Make sure to follow the project's coding conventions and guidelines

buy-me-a-coffee's People

Contributors

calc1f4r avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.