Setup
Install and run the TanStack Start Drizzle starter kit locally.
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-drizzle.git my-app
cd my-app
cp .env.example .envBefore installing, edit .env:
- Set
DATABASE_URLto your PostgreSQL database. The example file anddocker-compose.ymldescribe the included local instance. - Replace the example
BETTER_AUTH_SECRETwith a fresh random secret. Do not reuse a demo application's secret. - Set
NEXT_PUBLIC_SITE_URL=http://localhost:3000. - Configure
RESEND_API_KEYandEMAIL_FROMto complete email/password sign-up, password resets and organization invitations.
Run locally
npm ci
npm run docker:up
npm run db:migrate
npm run devOpen 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.
Use committed Drizzle migrations to create the tables. Generating a migration and applying it are separate commands.
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 buildContinue with Database, Authentication and Deployment.
For framework fundamentals, see the official TanStack Start documentation.