Based on sidebase merino
-
Install dependencies
bun install
-
Reset database
npx prisma db push --force-reset
-
Install db extensions
PGPASSWORD=password psql -U user -d db -h 127.0.0.1 CREATE EXTENSION earthdistance; CREATE EXTENSION cube;
-
Generate the Prisma client
npx prisma generate
-
Import data
bun cli import
- Start development server
bun dev
- Error 500: Invalid
prisma.$queryRaw()
invocation: Raw query failed. Code:42883
. Message:ERROR: function ll_to_earth(numeric, numeric) does not exist HINT: No function matches the given name and argument types. You might need to add explicit type casts.
- install db extensions, repeat setup