Tools | |
---|---|
NextJS | https://nextjs.org |
Prisma | https://www.prisma.io |
Flowbite | https://flowbite-react.com |
Supabase | https://supabase.com |
Puppeteer | https://pptr.dev |
etc |
rizan@linux ~/Projects/nextjs-prisma-supabase $ node --version
v20.13.0
rizan@linux ~/Projects/nextjs-prisma-supabase $
rizan@linux ~/Projects/nextjs-prisma-supabase $ bun --version
1.1.9
rizan@linux ~/Projects/nextjs-prisma-supabase $
bun install
copy .env.example .env
openssl rand -base64 32
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"
NEXTAUTH_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
bunx prisma generate
bunx prisma migrate dev --name init
data/SQL.txt
bun --watch run dev
scripts/test.ts
...
const targetUrl = 'http://localhost:3000';
const widthResolution = 1280;
const heightResolution = 960;
...
bunx ts-node scripts/test.ts