Skip to main content
Getting Started

Setup

Install and run the TanStack Start Prisma starter kit locally.

Open MarkdownFull AI corpusFeedback

Requirements

Use Node.js 22. The repository pins 22.23.4 in .nvmrc; use that patched version or a compatible patched Node.js 22 release. You also need PostgreSQL, plus Docker if you want to use the included local database.

Clone the private repository after accepting your GitHub invitation:

git clone https://github.com/achromaticlabs/pro-tanstack-prisma.git my-app
cd my-app
cp .env.example .env

Before installing, edit .env:

  • Set DATABASE_URL to your PostgreSQL database. The example file and docker-compose.yml describe the included local instance.
  • Replace the example BETTER_AUTH_SECRET with a fresh random secret. Do not reuse a demo application's secret.
  • Set NEXT_PUBLIC_SITE_URL=http://localhost:3000.
  • Configure RESEND_API_KEY and EMAIL_FROM to complete email/password sign-up, password resets and organization invitations.

Run locally

npm ci
npm run docker:up
npm run db:migrate
npm run dev

Open http://localhost:3000. If you already have PostgreSQL, set DATABASE_URL for that instance and skip npm run docker:up. If port 5432 is occupied, do not start a second database on the same port.

The install step generates Prisma Client. Use committed migrations to create the database tables; generating the client alone does not apply the schema.

Create an account

A new email/password account must verify its email address before signing in. The kit sends a real verification email through Resend; it does not print a usable verification link to the terminal. Use a verified sending domain and a recipient your Resend account is permitted to email.

Google sign-in is optional and needs its own OAuth configuration. Stripe, AI and S3-compatible storage can be configured when you need those features; they are not prerequisites for rendering the homepage.

Keep secrets unprefixed. Variables prefixed with NEXT_PUBLIC_ or VITE_ can be exposed to browser code.

Validate changes

npm run typecheck
npm run lint
npm run test:unit -- --run
npm run build

Continue with Database, Authentication and Deployment.

For framework fundamentals, see the official TanStack Start documentation.