Database Setup .

By default, Evines is optimized for **PostgreSQL** with Prisma. However, the kit is provider-agnostic, meaning you can easily switch to MySQL, SQLite, or MongoDB.

Official Prisma + Next.js Guide
1

Initialize Prisma

Run the initialization command. You will be prompted to log in to Prisma, select a server region, and name your project.

npx prisma init --db
Post-Initialization

After the command finishes, specific instructions and your **Database URL** will appear in your terminal. Copy this URL immediately.

2

Configure .env.local

Paste your Database URL into your .env file.

# Important: Ensure the SSL mode is present at the end
DATABASE_URL="postgres://user:password@host:port/dbname?sslmode=require"

Double-check your URL. If you are using a cloud provider like Neon or Supabase, omitting ?sslmode=require will likely cause connection timeouts.

3

Sync & Generate

Once your URL is set, push the schema to your database and generate the Prisma Client.

Push schema to DB

npx prisma migrate dev

Generate local types

npx prisma generate

Visualize your data

Run Prisma Studio to open a visual editor in your browser and manage your records effortlessly.

npx prisma studio