Database
All boilerplate templates come with PostgreSQL integration using the Drizzle ORM.
Follow this guide to configure the database in your template.
-
Get your Database URL
- From your local Postgres instance or hosting provider (e.g., Neon, Supabase, Railway).
-
Add it to the
.env
fileDATABASE_URL=postgres://USER:PASSWORD@HOST:PORT/DB_NAME
-
Generate the client
npx drizzle-kit generate
-
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