Watch: Get a free Postgres database on Neon | Vovy
Watch Vovy do it on a Mac: "Create a Neon Postgres database and connect it to my Next.js app". Create a Neon project, copy the pooled connection string, connect your app or ORM, and understand scale to zero and branches.
"Create a Neon Postgres database and connect it to my Next.js app"
Create a Neon project, copy the pooled connection string, connect your app or ORM, and understand scale to zero and branches.
What happens in the video
- Create a Neon project: Vovy opens console.neon.tech, creates a project, and picks the region nearest your app's hosting. You sign in yourself.
- Copy the pooled connection string: A connection string is the full address and password for your database. Vovy copies the pooled one, which handles many short connections from serverless apps.
- Add it to your app: Vovy puts it in .env as DATABASE_URL and in Vercel's environment variables, never in code.
- Create your first table: Vovy creates a table with your ORM, like Drizzle or Prisma, or in Neon's SQL Editor, and inserts a test row.
- Explain branches and idling: A card explains that the database sleeps when idle to save money, so the first query can be slower, and branches let you copy the database for testing.
Read the step-by-step guideLoading...