Created with "yarn create next-app" See https://trpc.io/docs/example-apps
Set postgres user/password in .env (if necessary), then install node dependencies and launch application
yarn
yarn dx
yarn build # runs `prisma generate` + `prisma migrate` + `next build`
yarn db-reset # resets local db
yarn dev # starts next.js
yarn dx # starts postgres db + runs migrations + seeds + starts next.js
yarn test-dev # runs e2e tests on dev
yarn test-start # runs e2e tests on `next start` - build required before
yarn test:unit # runs normal Vitest unit tests
yarn test:e2e # runs e2e tests
Path | Description |
---|---|
./prisma/schema.prisma |
Prisma schema |
./src/pages/api/trpc/[trpc].ts |
tRPC response handler |
./src/server/routers |
Your app's different tRPC-routers |