First, prep your environment:
- Add a
.env
file in project root pointing to your local DB
DATABASE_URL=mysql://[user]:[password]@[host]:[port]/[dbname]]?connect_timeout=300
- Install dependencies
npm install --force
- Build prisma schemas
npx prisma db push
npx prisma generate
Then, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.