Skip to content

psygo/real-fox

Repository files navigation

Real Fox

Ranking Fox Weiqi players beyond 9d.

Huge thanks to @ale64bit for his work on the openfoxwq project, otherwise this wouldn't have been possible.

Services and Tech Used

Dev

Environment Variables

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=

#-----------------------------------------------------------

EdgeDB

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