Document local Prisma env setup#14
Conversation
|
Hey, thanks for opening this PR! Adding the Since your changes opened the door to fixing this workflow, I wanted to document the specific hurdles I ran into on a fresh clone and how they wrap into the larger setup puzzle. The Broader "Local Setup" Hurdle1. Missing Prisma Client Generation
2. Unpinned Prisma Version Drift
Making the Onboarding Puzzle CompleteYour PR is the perfect anchor for this. To turn this into a comprehensive fix for our local dev instructions, I'd love to see your README suggestions expanded with these additions into a definitive, step-by-step setup sequence. Quick Startgit clone https://github.com/danishfareed/Google-Maps-SERP.git
cd Google-Maps-SERP
npm install
npx playwright install chromium
cp .env.example .env
npm install @prisma/client@5.22.0
npm install --save-dev prisma@5.22.0
npx prisma generate
npx prisma db push
rm -rf .next
npm run devOpen http://localhost:3000 in your browser.
Since your PR nicely kickstarted this conversation, would you prefer to roll these extra documentation steps into this PR so you get full credit for fixing the onboarding workflow, or would you rather have me submit a secondary PR on top of yours to handle the README expansion? |
Summary
Adds an
.env.examplefile for local development.Why
When running the app from source, Prisma requires
DATABASE_URL. Without a.envfile, local setup fails with:Environment variable not found: DATABASE_URLThis example points Prisma at the local SQLite database used by the project.
Suggested README follow-up
The developer setup docs could also mention:
before running: