git clone https://github.com/zianwar/sveltekit-tailwindcss-prisma-starter myapp
cd myapp
pnpm i
cp .env.example .env
Use PlanetScale (MySQL)
- schema.prisma is already configured to use this method, to keep it, create a database on PlanetScale and copy the credentials into local
.env
file.
-
Local
.env
should already be using MySQL file. -
Update Prisma schema.prisma to use SQLite:
datasource db { - provider = "sqlite" + provider = "mysql" url = env("DATABASE_URL") + relationMode = "prisma" }
-
Create database and generate Prisma client
npx prisma db push