Add these environment variables to your .env.local file and deployment platform:
# MiniKit Configuration
NEXT_PUBLIC_ONCHAINKIT_PROJECT_NAME="Fundable"
NEXT_PUBLIC_URL="https://your-deployed-app-url.com"
NEXT_PUBLIC_CDP_API_KEY="your_coinbase_developer_platform_api_key"
# Farcaster Account Association (Generated via `npx create-onchain --manifest`)
FARCASTER_HEADER=""
FARCASTER_PAYLOAD=""
FARCASTER_SIGNATURE=""NEXT_PUBLIC_APP_ICON="https://your-app-domain.com/imgs/fundable_logo.png"
NEXT_PUBLIC_APP_SUBTITLE="A decentralized funding application"
NEXT_PUBLIC_APP_DESCRIPTION="Fundable enables decentralized funding and distribution through blockchain technology"
NEXT_PUBLIC_APP_SPLASH_IMAGE="https://your-app-domain.com/imgs/fundable_logo.png"
NEXT_PUBLIC_SPLASH_BACKGROUND_COLOR="#000000"
NEXT_PUBLIC_APP_PRIMARY_CATEGORY="utility"
NEXT_PUBLIC_APP_HERO_IMAGE="https://your-app-domain.com/imgs/fundable_logo.png"
NEXT_PUBLIC_APP_TAGLINE="Decentralized funding made simple"
NEXT_PUBLIC_APP_OG_TITLE="Fundable - Decentralized Funding"
NEXT_PUBLIC_APP_OG_DESCRIPTION="Fundable enables decentralized funding and distribution through blockchain technology"
NEXT_PUBLIC_APP_OG_IMAGE="https://your-app-domain.com/imgs/fundable_logo.png"- Deploy Your App: Deploy to Vercel or another platform with HTTPS
- Get CDP API Key: Sign up at Coinbase Developer Platform
- Configure Environment Variables: Add the required variables to your
.env.localand deployment platform - Generate Manifest: Run
npx create-onchain --manifestto generate Farcaster association credentials - Test: Visit
https://your-domain.com/.well-known/farcaster.jsonto verify the manifest
- Create a cast with your app's URL in Farcaster
- Verify the preview displays your hero image and launch button
- Test the launch experience by clicking the button
- Use the Farcaster Manifest Validator to validate your setup
Your app now has access to these MiniKit hooks:
useMiniKit()- Main context and frame readinessuseNotification()- Send notifications to usersuseAddFrame()- Allow users to save your appuseClose()- Close the mini app frameuseOpenUrl()- Open external URLsusePrimaryButton()- Configure primary buttonuseViewProfile()- Navigate to user profilesuseAuthenticate()- Handle Farcaster authentication
- Update your environment variables with actual values
- Deploy your app with HTTPS enabled
- Run the manifest generation command
- Test your Mini App in Farcaster
- Add more MiniKit functionality as needed