Docs
Database

Database

How to config your Neon database.

Here are some free postgres database:

Steps

Create Neon account

If don't have an account on Neon, just follow their steps here for create one.

Copy database url

After create a project on Neon, you can copy the database url. Select Prisma from the list then the env tab.

Don't forget to reveal the information hidden behind the stars using the eye icon. It's not very visible in dark mode.

Paste in your .env file.

DATABASE_URL = "postgres://alex:[email protected]/dbname";

Push migrations

You can push the migrations on your database with the cli.

npx prisma db push