Skip to Content

Database

All boilerplate templates come with PostgreSQL integration using the Drizzle ORM.
Follow this guide to configure the database in your template.

  1. Get your Database URL

    • From your local Postgres instance or hosting provider (e.g., Neon, Supabase, Railway).
  2. Add it to the .env file

    DATABASE_URL=postgres://USER:PASSWORD@HOST:PORT/DB_NAME
  3. Generate the client

    npx drizzle-kit generate
  4. Push the schema to the database

    npx drizzle-kit push

This will sync your schema with the database, and you’ll be able to view the created tables directly in your database.

Last updated on