Ranking Fox Weiqi players beyond 9d.
Huge thanks to @ale64bit for his work on the openfoxwq project, otherwise this wouldn't have been possible.
- Vercel for handling deployment, and cron jobs.
- Vercel Postgres for handling the DB.
- Drizzle for ORM.
- Open Fox API
This is the shape of the project's environment variables:
#-----------------------------------------------------------
# 1. Drizzle
POSTGRES_URL=
NODE_ENV=
#-----------------------------------------------------------
# 2. Open Fox API
NEXT_FOX_API_USER=
NEXT_FOX_API_PASSWORD_HASH=
NEXT_FOX_API_AUTH=
NEXT_FOX_API_ID=
NEXT_FOX_API_KEY=
#-----------------------------------------------------------
To create migrations:
edgedb migration create
edgedb migrate
If you would like to reset things, you can:
edgedb
And then use reset schema to initial;
.
You will also probably need to update Next.js' inferred types with:
pnpx @edgedb/generate edgeql-js
It's also possible to watch for diffs on EdgeDB with:
edgedb watch