Giter Club home page Giter Club logo

johndpope / tip-tweet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diasjuniorr/tip-tweet

0.0 0.0 0.0 730 KB

Tip Tweet is a hybrid dApp that provides a simple way to tip a tweet using Ethereum. Authors can claim their tips using their Twitter account. You only need the tweet URL to tip. ๐Ÿš€ ๐Ÿ˜Ž

Home Page: https://tip-tweet.vercel.app/

Shell 1.12% JavaScript 2.50% TypeScript 79.85% CSS 7.41% Makefile 0.08% PLpgSQL 2.87% Solidity 6.17%

tip-tweet's Introduction

Tip Tweet

Table of Contents

About

Tip Tweet is hybrid dApp that allows users to tip a tweet with crypto currency without needing the author's wallet address or any other information but the tweet URL. The author can claim the tip just by logging with their Twitter account. It's under development and currently only supports Ethereum. At the moment it uses Rinkeby network.

Folder structure

  • root: contains the smart contract development environment. It uses Hardhat.
  • app: contains the app to interact with the contract developed with Next.js and Supabase.

Contract Development

The root directory contains the smart contract development environment. It uses Hardhat. as mentioned above. To set up the development environment, run the following command in the root directory:

npm install
## or
yarn

Now you can compile, test and deploy the contract.

Compiling the contract

in the root directory, run the following command:

npx hardhat compile

Testing the contract

in the root directory, run the following command:

npx hardhat test

Deploying the contract

in the root directory, run the following command:

npx hardhat run scripts/deploy.ts --network <network>

Copying contract ABI to the app

Every time you compile a new version of the contract you will need to provide the ABI of the contract to the app. To do so, run the following command in the root directory:

make abi

Starting the App

To start the app to interact with the contract on the blockchain, you need to cd app and run the following command:

To install the dependencies, run:

npm install
## or
yarn

To start it:

npm run dev
## or
yarn dev

Usage

Under construction.

tip-tweet's People

Contributors

diasjuniorr 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.