CRUD with Server Actions
Perform Create, Read, Update, and Delete (CRUD) operations on your database using Server Actions.
CRUD: Database Actions Made Easy
Welcome to CRUD operations with Next.js Server Actions! CRUD stands for Create, Read, Update, and Delete. These are the four fundamental operations for interacting with any database.
Server Actions provide a powerful way to perform these operations directly on the server, keeping your client-side bundle small and improving security.
Recap: Prisma & Server Actions
In the previous lesson, we set up Prisma. We'll use Prisma Client to interact with our database. Remember, Server Actions are asynchronous functions that run on the server.
They can be defined directly in a component or in a separate actions.js file. We'll use a simple Post model for our examples.
All lessons in this course
- Setting Up Prisma ORM
- CRUD with Server Actions
- Database Schema Migrations
- Database Seeding & Connection Pooling