bun install- Do one of the these
- get credentials for dev turso
- just run with local sqlite.
- create a new turso database with
turso db create <name>- get the database url with
turso db show --url <name> - get the auth token with
turso db tokens create <name>
- get the database url with
- (optional) create a new app registration and get credentials
- copy
.env.exampleto.env - fill out all enviorment variables (refer to the config file to see schema)
bun dev(this will migrate your db)
- (optional) stop your bun dev and run
bun db:seed(This will create some players and matches) - run
bun devagain after seed has finished
-
Install the Fly CLI
-
Run
fly launch -
Run
fly secrets set <NAME>=<VALUE>(probably want to setNODE_ENVto"production") -
Run
fly deploy
If you are having trouble with generated migrations just delete all tables then it seems to be a problem with Bun. Instead you can use node and it seems to work.
Just run npx drizzle-kit generate.