Pick your database and start with schemas/tables and safe migration workflows.
At a glance
- Schema starter
- Migrations workflow
- Connection-string based config
- DATABASE_URL
- Provider-specific credentials
- Migration commands
Quickstart
Add your database connection string to .env.local (e.g., from Neon or Supabase dashboard).
Generate and apply schema changes with drizzle-kit (npx drizzle-kit generate && npx drizzle-kit push).
Restart npm run dev so the database connection is loaded.
Sign up a test user and confirm auth/session data is stored correctly in the database.
Providers
Pick an option below. Each provider has a short guide so you can implement without digging through docs.
Neon PostgresAvailableExpand
Default in the current scaffold. Serverless Postgres + Drizzle ORM.
Supabase PostgresAvailableExpand
Managed Postgres with Supabase dashboard and tooling.
MongoDBComing soonExpand
Document database option (planned) with Mongoose schemas/plugins.
Schema & migrationsAvailableExpand
How to keep schema changes tracked and deployable.
Code
Copy/paste-friendly code blocks. Designed to get you working quickly without digging through long docs.
Use Neon or Supabase Postgres connection strings.
DATABASE_URL="postgresql://postgres:YOUR_PASSWORD@db.yourproject.supabase.co:5432/postgres"Generate and apply schema changes.
$ npx drizzle-kit generate$ npx drizzle-kit push