/convex/schema.ts and functions (queries and mutations) are in /convex/.
The better-auth api runs on convex api routes, and was set up following this guide.
Development Setup
Run convex dev command to set up locally or cloud
Generate a better auth secret
Setup client id and secret
Get a client ID and secret from Hack Club$(read) so it doesn’t get saved in your shell history)
Set convex site url
Set theEXPO_PUBLIC_CONVEX_SITE_URL variable in .env.local to the .site url for the convex deployment.
Development workflow
Runpnpm start and pnpm dlx convex dev in separate terminals.