Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devinaconley/rock-paper-scissors
global game of rock paper scissors on farcaster
https://github.com/devinaconley/rock-paper-scissors
Last synced: 25 days ago
JSON representation
global game of rock paper scissors on farcaster
- Host: GitHub
- URL: https://github.com/devinaconley/rock-paper-scissors
- Owner: devinaconley
- License: mit
- Created: 2024-01-31T23:19:40.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-04-29T13:50:42.000Z (8 months ago)
- Last Synced: 2024-08-03T18:10:51.549Z (4 months ago)
- Language: Python
- Homepage: https://warpcast.com/~/channel/tournament
- Size: 202 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-frames - Rock, Paper, Scissors
README
# rock-paper-scissors
global game of rock paper scissors on farcasterthe 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