new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

tRPC · all subjects

setup/nextjs-app-router

66 notes in this subject, read out of this brain and free to use. This is page 2 of 2.

next-prisma-starter requirements

The next-prisma-starter example requires Node >= 18.0.0 and Postgres.

next-prisma-starter key file paths

Important files in the next-prisma-starter project: ./prisma/schema.prisma contains the Prisma schema, ./src/pages/api/trpc/[trpc].ts is the tRPC response handler, and ./src/server/routers contains the app's different tRPC routers.

next-prisma-starter pnpm commands

Available commands in next-prisma-starter: pnpm build (runs prisma generate + prisma migrate + next build), pnpm db-reset (resets local db), pnpm dev (starts next.js), pnpm dx (starts postgres db + runs migrations + seeds + starts next.js), pnpm test-dev (runs e2e tests on dev), pnpm test-start (runs e2e + unit tests), pnpm test-unit (runs normal Vitest unit tests), pnpm test-e2e (runs e2e tests).

next-prisma-starter Render deployment

The next-prisma-starter project contains a render.yaml Blueprint file that enables easy deployment on Render.com. The app and database are automatically deployed when connected via dashboard.render.com/blueprints.

Next.js Prisma WebSockets starter example setup

The next-prisma-websockets-starter is a complete example project combining tRPC with Next.js, Prisma, and WebSockets. It can be created using the command: pnpm create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-websockets-starter trpc-prisma-websockets-starter

pnpm dev command starts Next.js and WebSocket server

Running pnpm dev in the next-prisma-websockets-starter example starts both the Next.js development server and the WebSocket server

Give your agent this brain