Rust Farcaster Frames Template
February 7, 2024 · View on GitHub
Template for jumpstarting production-ready Farcaster frames quickly.
— no fuss, all fun!
Features
- Seamless Integration: Easily create frames for Farcaster with Rust's performance.
- Rapid Deployment: Utilize Vercel for quick and effortless deployment of your frames.
- Local Testing Support: Includes setup for
localtunnelto facilitate easy local testing and development.
Prerequisites
Ensure you have the following installed to use this template effectively:
- Rust and Cargo
- Localtunnel
- Vercel CLI
Getting Started
Clone and Setup
-
Clone the repository to get started:
git clone https://github.com/jpgonzalezra/farcaster-frames-template.git cd farcaster-frames-template -
Install
vercelglobally:npm install -g vercel
Run Locally
Use the provided Makefile to streamline the local development process:
- when you run
make devif you do not have "localtunnel" installed it is installed
make dev
Each time you run make dev, a unique URL is generated, such as https://{something}.loca.lt. This URL can be directly copied and used to test your frame with the Warpcast Embed Tools, significantly streamlining the development and testing workflow.
Deployment
Deploy your frame to Vercel with ease:
- Log in to your Vercel account through the CLI:
vercel login
- Deploy your project with Vercel:
vercel
Follow the prompts to link and deploy your project.
Contributions
We welcome contributions to improve this template further. Please feel free to submit pull requests or open issues with your suggestions and feedback.