~/talk

Getting Started with Next.js and Prisma

Talkat Prisma Day 2021 · 2021-06-29..06-30· [react, databases]
slides:none on file

Workshop shows how to wire Prisma into a Next.js app to build a working CRUD storefront: it initializes Prisma, uses getServerSideProps and API routes to fetch and mutate data, runs migrations with Prisma migrate to create a local SQLite dev.db, seeds product JSON (noting seed/js issues with Next), inspects and edit records with Prisma Studio, and consumes the generated types via Prisma Client. Expect pragmatic, runnable steps, migration files, and a global Prisma pattern to avoid hot-reload connection storms.

AI-written summary · about

  1. 0:00Start
  2. 4:46Intro
  3. 10:57Prisma Extension
  4. 12:27Npm Install
  5. 19:16Prisma Cli
  6. 20:08Install Prisma
  7. 30:24Prism Extension Does Not Load
  8. 31:01Restarting vs Code
  9. 32:07Prisma Migrate
  10. 33:33Prisma Studio
  11. 34:10Error with the Migration
  12. 34:25Schema Parsing
  13. 38:35User Model
  14. 40:07Are There Model Name Length Constraints for Many to Many Relationships
  15. 40:35Can I Migrate a Database Already Running on Heroku
  16. 43:56Enums
  17. 50:35Create a Record
  18. 52:02Seed Your Database
  19. 56:00Getting a Global Prisma Instance
  20. 57:38What Needs To Go into a Product
  21. 59:46Create a Global Instance of Prism
  22. 1:08:46Types That Come from Prisma
  23. 1:26:11Git Checkout
  24. 1:28:52Performance
  25. 1:32:33Product Page
  26. 1:35:03Query to Prism
  27. 1:46:43Pages Api
  28. 1:51:45Call from the Client Side
  29. 1:56:25How To Handle Errors and Get Server-Side Props
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.