1. Initialize from template
npx prisma init --datasource-provider postgresql
  1. Setup tsconfig.json
{
	"compilerOptions" : {
		"sourceMap" : true,
		"outDir" : "dist",
		"strict" : true,
		"lib" : ["esnext"],
		"esModuleInterop" : true
	}
}
  1. In a .env, write your remote database URL
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"
  1. Setup a Prisma Schema
  2. Then, do a migration to update your database