First, make sure that the environment variables for the Postgres database are inside src/.env
.
To generate Typescript types from the Prisma schema run:
cd src
pnpx prisma generate
To run the dev server run:
cd src
pnpm dev
To seed the database run:
npx prisma db seed
Warning
Do not run pnpx prisma db seed
because it doesn't work pnpm/pnpm#6464. Use npx
!
To build the app run:
cd src
pnpm build
To run the tests, run the dev server on port 3000 and then run:
pnpm test