npx create-next-app --example https://github.com/prisma/blogr-nextjs-prisma/tree/main news
git init -b main
git add .
git commit -m "first commit"
git remote add origin https://github.com/haha/news.git
git remote -v
git push origin main
// Now all the source code and files uplaoded to GitHub repo
// Vercel / Deploy this GitHub repo
// Vercel Nav bar Storage / Create New Database / Choose Neon Postgres
vercel link
vercel env pull .env
npm install prisma --save-dev
code .
// create prisma schema
// create table into Vercel postgres
npx prisma db push
npx prisma studio
npm install @prisma/client
npx prisma generate
Top comments (0)