/blog_nextjs_prisma

Primary LanguageTypeScriptMIT LicenseMIT

Blog NextJS + Prisma

Setup Prisma

Run migrations to create the SQLite database

npx prisma migrate dev

Seed with users and post

npx prisma db seed

TODO (Higher priority at the bottom)

  • Production ready
  • QA: 404, empty, return link to correct, colors (dark/white)
  • Test using playwright
  • Test "bad connection" (Pagination)
  • Endpoint error handling component
  • Delete confirmation dialog
  • Post delete button component
  • Post card component
  • Filter Posts by userId and test
  • List Posts and test
  • Seed scripts from https://jsonplaceholder.typicode.com/users https://jsonplaceholder.typicode.com/posts.
  • Setup Prisma ORM (add .env to git)
  • Init NextJS project

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, 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.