Skip to content

Latest commit

 

History

History

flask-app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Neynar Flask Mini-App

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:

Steps

Step 1: Clone the Repository

Clone the Neynar Mini-App repository to your local machine:

git clone https://github.com/neynarxyz/farcaster-examples

Step 2: Prepare the Application Directory

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

Step 3: Set Up a Virtual Environment

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

Step 4: Install Dependencies

Install the required Python packages:

pip install -r requirements.txt

Step 5: Edit the FID and the API key

Open app.py and replace the api_key with your own:

api_key = "YOUR_API_KEY_HERE"

Step 6: Run the Application

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!