Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/devinaconley/rock-paper-scissors

global game of rock paper scissors on farcaster
https://github.com/devinaconley/rock-paper-scissors

Last synced: 3 months ago
JSON representation

global game of rock paper scissors on farcaster

Awesome Lists containing this project

README

        

# 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](https://github.com/devinaconley/python-frames) 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](https://github.com/framesjs/frames.js) to test locally

## deployment

import project to [vercel](https://vercel.com/) with the flask framework

register with [neynar](https://neynar.com/) to get an api key

create a [supabase](https://supabase.com/) 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