This is a Mini App template built using OnchainKit and the Farcaster SDK. It is designed to help you build and deploy a Mini App that can be published to the Base App and Farcaster.
Important
This is a workshop template. Please follow the instructions below to configure and deploy your app.
Before getting started, make sure you have:
- A Farcaster account (for testing)
- A Vercel account for deployment
- A Coinbase Developer Platform Onchainkit Client API Key
- Basic knowledge of Base Build platform
- Fork this repository
- After forking, clone your forked template project
git clone https://github.com/[your_username]/[your_forked_repository_name].git
cd [your_forked_repository_name]
npm installCreate a .env file based on .example.env:
NEXT_PUBLIC_ONCHAINKIT_API_KEY=<YOUR-CDP-API-KEY>
NEXT_PUBLIC_URL=http://localhost:3000npm run devOpen http://localhost:3000 to see your app.
The minikit.config.ts file configures your app's manifest.
- Open
minikit.config.ts. - Update
name,subtitle, anddescriptionto match your app idea. - Note: Skip the
accountAssociationfor now; we will add this after deployment. IMPORTANT: Follow manifest documentation for configuring your app's manifest
Note: You can update manifest metadata of your app after deployment if you don't have an idea yet.
vercel --prodor
Use the Vercel website and add your repository as a new project.
In your Vercel project settings, add:
NEXT_PUBLIC_ONCHAINKIT_API_KEYNEXT_PUBLIC_URL(Your Vercel deployment URL)
To publish your app to the Base App ecosystem:
- Go to Base Build and log in.
- Click Mini App Tools button at top right of the website.
- Paste your deployed website link provided by Vercel into the field.
- Use the Account Association tools on Base Build to sign your manifest.
- Update
minikit.config.tswith the signature and redeploy.
For detailed docs, visit docs.base.org.
This project is a demo application for educational purposes only.