Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diasjuniorr/tip-tweet
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. 🚀 😎
https://github.com/diasjuniorr/tip-tweet
blockchain dapp ethereum ethersjs hardhat nextjs supabase tailwind
Last synced: 3 months ago
JSON representation
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. 🚀 😎
- Host: GitHub
- URL: https://github.com/diasjuniorr/tip-tweet
- Owner: diasjuniorr
- Created: 2022-01-17T19:13:22.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-18T09:02:51.000Z (almost 3 years ago)
- Last Synced: 2024-08-01T21:59:53.977Z (6 months ago)
- Topics: blockchain, dapp, ethereum, ethersjs, hardhat, nextjs, supabase, tailwind
- Language: TypeScript
- Homepage: https://tip-tweet.vercel.app/
- Size: 713 KB
- Stars: 24
- Watchers: 2
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tip Tweet
## Table of Contents
- [About](#about)
- [Folder Structure](#folder_structure)
- [Contract Deveopment](#contract_deveopment)
- [Starting the App](#getting_started)
- [Usage](#usage)
- [Contributing](../CONTRIBUTING.md)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](https://rinkeby.etherscan.io/) network.
- root: contains the smart contract development environment. It uses [Hardhat](https://hardhat.org/).
- app: contains the app to interact with the contract developed with [Next.js](https://nextjs.org/) and [Supabase](https://supabase.io/).The root directory contains the smart contract development environment. It uses [Hardhat](https://hardhat.org/). as mentioned above.
To set up the development environment, run the following command in the root directory:
```bash
npm install
## or
yarn
```Now you can compile, test and deploy the contract.
### Compiling the contract
in the root directory, run the following command:
```bash
npx hardhat compile
```
### Testing the contract
in the root directory, run the following command:
```bash
npx hardhat test
```
### Deploying the contract
in the root directory, run the following command:
```bash
npx hardhat run scripts/deploy.ts --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:
```bash
make abi
```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:
```bash
npm install
## or
yarn
```To start it:
```bash
npm run dev
## or
yarn dev
```Under construction.