-
Sign in to Neon using your GitHub account (or an account you create via email or other forms of authentication)
- If it asks you to create a team, create one with any name
-
Enter a name for your new database instance, choose PG 16, AWS hosting and the minimal size for the DB. This will be your PRIMARY database
-
Repeat the same steps to create a second database, this time give it the same name but add
-shadow
to the end. This will be your SHADOW database -
Copy the DB Connection strings for each database. a) open the Database Project; b) visit the
Quickstart
page; c) ClickPosgres
and then clickCopy snippet
-
In your
.env
file, paste the connection strings, making sure you keep the?sslmode=require&schema=prisma
and?sslmode=require&schema=shadow
at the end of the connection string.
See Docker's official guide on using the Postgres Docker image.