Skip to content

intls/demo01

Repository files navigation

DappyKit + Farcaster + Vercel Template

This is a Quiz Typescript Frame template for Farcaster integrated with DappyKit. The template is ready to deploy on Vercel. A KV storage must be created to store user sessions for the project to work.

In the ./quiz.json file, a list of questions and answers is stored. The project is configured in Vercel through environment variables. Here is the list of variables:

  • APP_OWNER_FID - a unique user number in Farcaster, the application administrator.
  • APP_PK - an ETH-compatible private key in 0x format for signing messages.
  • APP_SHARE_URL - the link to the Frame itself after deployment, needed to share the Quiz with other users.
  • AUTH_SERVICE_ADDRESS - not required. Auth signer address from https://github.com/DappyKit/farcaster-auth.
  • APP_AUTH_URL - not required. The link to the authorization Frame. You can provide your own if the standard one doesn't fit.
  • APP_TITLE - not required. The title of your application.
  • KV_NAMESPACE - not required. A unique namespace for your application. Required only if multiple applications use the same KV storage.

Video Tutorial

Watch the tutorial

Create your custom Quiz with ChatGPT

🆓 Use this prompt.

🆓 If you are an OLD free ChatGPT user, you can generate a correct quiz.json file using this chat: https://chatgpt.com/g/g-UFjeBIRpE-dappykit-quiz-for-farcaster

💸 If you have a ChatGPT subscription, you can generate the entire project with the quiz in this chat: https://chatgpt.com/g/g-mxV7W9Rgi-dappykit-quiz-frame-for-farcaster

To generate the quiz, you need to specify the topic of the questions, and ChatGPT will do the rest for you. You can also specify the number of questions you need to create. By default, the chat will generate 30 questions.

Installation

npm ci
npm run dev

Go to http://localhost:5173/api/dev

Releases

No releases published

Packages

No packages published