Giter VIP home page Giter VIP logo

faucet-frame's Introduction

Frames.js Next Faucet

Simple Faucet app using Frames.js and Next.

How It Works

The application is straightforward. The same API that creates the Frames will also control user claims and, using the private key from the wallet, send the tokens.

Dependencies

The application uses Supabase to store information about user interactions. Therefore, it is necessary to create an account on the platform, create a table, and use it with the application.

The users table should have the following columns:

id : int8 : primary
claimed_at : timestamptz : now()
fid : numeric
f_address : string
eth_address : string

Environment Variables

The faucet includes four environment variables, which are:

  • WALLET_PRIVATE_KEY for the private key of the wallet that will be used to send the tokens
  • SUPABASE_URL for the access URL for Supabase
  • SUPABASE_KEY for the access key for Supabase
  • WEBSITE_URL for the URL where the Frame will be hosted; this variable should only be added in production

Development

To develop your own version of the Faucet, start by cloning the repository:

git clone https://github.com/r4topunk/faucet-frame.git
cd faucet-frame

Then, install the packages:

pnpm install

Edit the .env:

cp .env.example .env

To launch in development mode use the command:

pnpm run dev

Deployment

Because the development was done using Next.js, deployment can be carried out on Vercel. Additionally, since the development was done with Next, a web page will be created to host the site and receive requests.

When you click on the Frame image within Warpcast, you will be sent to the Frame's webpage; in this case, the page will be the one generated by Next. You can edit it in app/page.tsx.

faucet-frame's People

Contributors

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