API Reading and Updating – Sending Dynamic Route Parameters from Remix to Prisma
The next challenge in our pet database app is reading and updating specific entries in the database. For that, we use Remix’s dynamic route matcher and the loader parameters to navigate and access entries based on ID. Then we can use Prisma to filter our query with a WHERE clause for the ID. The first video in this series is available here.
0:00 – Introduction
0:47 – Continuing with CRUD: Read & Update
01:11 – Creating a page for Nugget with routes
05:12 – Adding details to Nugget’s page with dynamic data
13:30 – Creating a UI for Nugget’s page
20:00 – Adding “action” function to the database
23:15 – Updating the data in the database
27:05 – Outro & What’s Next
New to Linode? Get started here with a $100 credit!
The code for this project is available here.
Learn more about PostgreSQL here.
Subscribe to get notified of new episodes as they come out.
#Remix #Prisma #Postgres #Linode
Product: Linode, Akamai, Databases, Austin Gil
Umbrel Install With One Command – Server Dashboard and Marketplace App
You might also like…
Linode Terraform Provider | Easy Replicable Provisioning with Infrastructure as CodeTerraform is an IaC tool that focuses on creating, modifying, and destroying servers, instead of managing the software on those servers.
Adding offset pagination to our Remix project with Prisma and SQLIn this video, we'll learn how to add pages to search results in our pet database using Pagination with SQL and Prisma.
Try Infrastructure as CodeJustin Mitchel provides a step-by-step IaC guide for Terraform, Ansible, Puppet, Chef, and Salt.
What is Infrastructure as Code? | IaC ExplainedIn this video we'll discuss how IaC is used, and introduce tools like Terraform that allow you to deploy your Linodes with simple code.