Minimal Next.js app with Google sign-in, a protected dashboard page, and a tRPC hello route wired end-to-end.
- Infrastructure: Supabase
- Framework: Next.js 16 (App Router, TypeScript, React 19)
- API: tRPC 11 with
fetchadapter - Data / ORM: Prisma +
pg(PostgreSQL) - Auth:
better-authwith Google OAuth
- Install dependencies
bun install # or npm install / pnpm install- Env setup
cp .env.example .env.localSet your database and auth config (e.g. Postgres URL, Google client ID/secret).
- Run dev server
bun devVisit http://localhost:3000, click login, and you’ll be redirected to /dashboard, which calls trpc.hello.getAll and renders the result.