Requirements
- Node.js 18+ installed
- Coinbase Developer Platform API key
- Access to Farcaster custody wallet for publishing
Create Project
Install MiniKit
Configure Vite
Update yourvite.config.ts
to add required polyfills:
vite.config.ts
Configure
Add environment variables:src/main.tsx
Initialize
Replace your App component with MiniKit initialization:src/App.tsx
Add Embed Metadata
Update yourindex.html
file with embed metadata:
index.html
Test Locally
Deploy
Deploy your app and updateVITE_PUBLIC_URL
with the HTTPS URL. This URL is required for generating Manifest credentials.
Generate Credentials
After deployment, run the CLI to generate Farcaster account association:FARCASTER_HEADER
, FARCASTER_PAYLOAD
, and FARCASTER_SIGNATURE
to your .env
.
Create Manifest
Create the manifest file:public/.well-known/farcaster.json
Verify
Deploy your changes and verify:- Manifest loads at
https://your-app.vercel.app/.well-known/farcaster.json
- Test in Warpcast Debug Tool