Tom MacWright
@macwright.com
9 months ago "We want the wisdom without the patient work of becoming wise." maalvika.substack.com/p/compressio...
π¬ 1
β»οΈ 3
β€οΈ 11
"We want the wisdom without the patient work of becoming wise." maalvika.substack.com/p/compressio... 8,000 folks are now hanging out with us on Discord π
If you're not in yet, here's what you're missing π
π Connect with others in Prisma land
π§ Talk directly with our engineers
πββοΈ Get human + AI support
Come join the convo π
pris.ly/discord/var-1 π You can embed Prisma Studio directly into your React apps, for free!
This gives you the same fast, modern UI for editing Postgres data, but inside your own app.
π‘ Useful for internal dashboards, admin panels, or letting users manage their own data safely.
Quick demo π
pris.ly/embed-studi... `npx prisma dev` gets a local Postgres database running in seconds.
We added new commands to further improve your workflow π₯³
See the demo π
pris.ly/ppg-new-com... Want to go beyond this thread and dive deeper with Next.js and Prisma Postgres?
The full guide in the Prisma docs walks you through setting up Next.js with Prisma Postgres and deploying it to @vercel.com.
Check it out π
pris.ly/nextjs-thre... β
Checkpoint: If everything worked, your app should now display the data you've added to your Prisma Postgres instance in a view when running the app with `npm run dev`. π Step 5. Fetch the data in the frontend code.
Open the `app/page.tsx` file and replace the existing code with the following to query your DB & retrieve your users π π€ Step 4: Integrate Prisma Client in Next.js.
Create a new file called `src/lib/prisma.ts` and add the following code to instantiate Prisma Client. π‘ Tip: You can now view and manage the data in your Prisma Postgres instance via Prisma Studio in your Prisma Data Platform Account.
Run `npx prisma studio` or visit console.prisma.io & add Alice and Bob as users in your app π βοΈ Step 4: Run a database migration.
To map the models from your Prisma schema to the database, run the following Prisma Migrate command. βοΈ Step 3: Define your Prisma schema.
Add your data models that represent the schema in your underlying database. For this app, we're defining a `User` and `Post` model for a simple blogging app. β
Checkpoint: At this point, your project structure will look as follows: π Step 2: Install Prisma & set up a Prisma Postgres database.
When running `npx prisma init --db`, you'll be prompted to provide some information about your Prisma Postgres instance (such as a name and its region). π Step 1: Create a new Next.js project with the `create-next-app` CLI and select all of the defaults β π Learn how to build a fullstack app with @nextjs.org and Prisma Postgres!
π Next.js is a powerful framework for building everything from content-rich sites to fullstack apps. In this thread, Iβll walk you through setting up Next.js with Prisma Postgres, step by step π π Want to see how to set up Prisma ORM properly in an ESM or monorepo project?
Weβve put together working Next.js 15 examples using Webpack, Turborepo, pnpm & more.
Check them out and let us know what examples we should add nextπ
pris.ly/examples/pc Germany making me feel like Iβm back in the UK with these >1hr train delays
π Need to quickly spot the differences between two snippets of code? Try `editor: diff clipboard with selection`, coming to stable in v0.197, this Wednesday.
Still stuck on Prisma ORM or Prisma Postgres after hours of searching?
Ask in our Discord help-and-questions channel.
Youβll get quick answers from AI or a real human. Your choice.
Join the community and get unblocked π
pris.ly/discord/var-2 Our team is growing, and we'd love to hear from you!
Check out the three new opportunities we just posted:
- Technical Customer Success Manager (North America)
- Platform Engineer
- Jr. Platform Engineer
We're empowering developers and content teams to create without limits.
directus.io/careers π€ AI chatbots need a database that can handle millions of operations a day without slowing down or demanding constant DevOps attention.
Thatβs why SiteGPT moved to Prisma Postgres for its scalable, usage-based approach.
Read the full story π
pris.ly/sitegpt i made a raidz1 pool a few weeks ago, bookmarking lol
The new prisma-client generator is now in Preview as of Prisma 6.12 π
If youβve been holding off, nowβs a great time to try it.
pris.ly/client-gen-...