Welcome to the Neynar Mini-App! This Flask application uses Neynar's API to fetch and display casts from the EVM channel. Follow these steps to get started:
Clone the Neynar Mini-App repository to your local machine:
git clone https://github.com/neynarxyz/farcaster-examples
Move the Flask app directory to your desired location and remove the cloned repository's extra contents:
mv farcaster-examples/flask-app .
rm -rf farcaster-examples
cd flask-app
Create and activate a virtual environment for the application:
python -m venv venv
# Activate the environment:
# On macOS/Linux:
source venv/bin/activate
# On Windows:
.\venv\Scripts\activate
Install the required Python packages:
pip install -r requirements.txt
Open app.py
and replace the api_key
with your own:
api_key = "YOUR_API_KEY_HERE"
Start the Flask app:
python app.py
# Your app will be running on port 5000
You should now see the Neynar mini-app running and displaying casts from the EVM channel!