Public repo for Airstack contributions to Farcaster Frames ecosystem
These instructions will get you a copy of the project up and running on your local machine for development purposes.
To install and run this project you need:
- Airstack API key (required for using Airstack APIs)
- Node.js v18.17.0+
- git (only to clone this repository)
To set up everything in your local machine, you need to follow these steps:
- Clone this repo and then change directory to the
airstack-frames
folder:
git clone https://github.com/Airstack-xyz/airstack-frames.git
- Navigate inside the project directory
cd airstack-frames
- Install project dependencies using npm:
npm install
- Create
.env.local
by copying.env.sample
cp .env.sample .env.local
- Update the AIRSTACK_API_KEY key of
.env.local
file. To get theAIRSTACK_API_KEY
follow Airstack API key
AIRSTACK_API_KEY="PUT_AIRSTACK_API_KEY_HERE"
FARCASTER_HUB_ENDPOINT="https://nemes.farcaster.xyz:2281"
BASE_URL="http://localhost:3000"
Note: Update BASE_URL appropriately, if deploying to production
To run the project simply run:
npm run dev
Your app should now be running on http://localhost:3000/ and Farcaster OG frame should be accessible at this route http://localhost:3000/og
Note: For visualizing frame in localhost you can checkout https://github.com/framesjs/frames.js/tree/main/examples/framesjs-starter