/rock-paper-scissors

global game of rock paper scissors on farcaster

Primary LanguagePythonMIT LicenseMIT

rock-paper-scissors

global game of rock paper scissors on farcaster

the backend is written in flask and deployed on vercel, the frontend is rendered via farcaster frames

it uses framelib for all frame logic, validation, and rendering

setup

setup a conda (or other virtual) environment

conda env update -f environment.yml
conda activate rock-paper-scissors

setup vercel

npm install vercel

development

run unit tests

pytest -v -s

run local app

npx vercel dev

you can run the frame debugger provided by frames.js to test locally

deployment

import project to vercel with the flask framework

register with neynar to get an api key

create a supabase project and create database tables using the ddl commands in supabase/migrations/

define the environment variables NEYNAR_KEY, SUPABASE_URL, and SUPABASE_KEY in your vercel project settings

deploy via vercel dashboard or automation