How about running Postgres in a Docker?
-
Install Docker
-
in Docker Desktop, go to Containers and Run Postgres installation (or via terminal
docker pull postgres) -
go to images, choose Postgres Run and add optional settings:
- Set
porttoYOURPORTand - environment variables:
POSTGRES_PASSWORD–YOURPASSWORD - default user will be postgres, as you state, so YOURUSER = postgres
- Set
-
in
.envfile writeDATABASE_URL=postgres://YOURUSER:YOURPASSWORD@localhost:YOURPORT/rw_auth
and in schema.prisma useurl = env("DATABASE_URL")
I hope this works. Only issue might be, that the setup of postgres in docker changed a bit.