The Ultimate Guide To Next.js Route Handlers - CRUD

preview_player
Показать описание
GitHub Repo 👇

This will allow you to create a fully functional CRUD operational application.

Route Handlers can be confusing but this video will teach you how to use dynamic data, useSearchParams, HTTP Methods, fetch web API, and more.

Join my FREE Discord to talk and network about web development! 👇

Time Stamps
0:00 Intro & Demo
6:55 Setup Prisma ORM and MongoDB
15:52 POST Request
29:23 GET Request
44:46 PATCH/PUT Request
1:07:03 DELETE Request
1:14:20 Outro
Рекомендации по теме
Комментарии
Автор

Exactly what is needed. A full rundown of everything important with real examples. Great!

fakn
Автор

Just what I was looking for! And finally someone who doesn’t do “User Posts” or “Todos” as examples

FendiFliperachi
Автор

Great tutorial! For the next one, could you consider using an in-memory database like SQLite? It would help beginners avoid setting up accounts and real databases.

TypeScriptTV
Автор

THIS VIDEO IS FANTASTIC, I'VE LITERALLY SPENT DAYS TRYING TO FIGURE THIS OUT THEN BUMPED INTO THIS VID, COVERS EVERYTHING EXACTLY AS I NEEDED
YOU DESERVE A BEER ON MY TAB

kennedyodhiambo
Автор

Thank you very much for covering the PATCH and DELETE methods !! They are hardly found on YT. Thanks again !!

shumit
Автор

Great video @brettwestwooddeveloper, doing a NextJS13 project and I'm basically using most of your tutorials as a backbone for our project and it's helping tons. Thank you!

kalelx
Автор

I was searching for this
Your notification
Thanks man

prashlovessamosa
Автор

Grateful as always! Was wondering if you can do a quick vid on how to display unique user data in dashboard other than session data. For example, products/services that a unique seller has created and orders associated with said products/services. Thanks again

johndeer
Автор

Great video! You made a video about custom keys in user object using JWT. Can you show us how can we synchronize credentials and google provider accounts of users using jwt token so that an email can only be used in a google or credentials user account at a time and also have custom keys in user object ( in google provider account too ) other name, email, image? BTW your content is most straight forward and logical out there on youtube. Thanks :)

daniyalfarooq
Автор

thanks for this amazing tutorial please can you do a video about pagination

alexdin
Автор

Hello! Really awesome tutorial! I understood everything, very well explained. I just wanted to know if it would be possible to have also delete method inside the edit route.

joseernestoroldan
Автор

You should ddo the same also for server actions :)

owl
Автор

At the very end, if you've set the new state for books via setBooks, why is the return elements of the page not rerendering? Why is a window reload required separately?

FarazFKhan
Автор

I keep getting a 500 status code(internal server error)when either posting or getting data from the db

And can’t really figure out where the issue is from

oketunbiolufunke
Автор

great video, why do you filter the books if the page gets reloaded anyways? after the delete request

destocot
Автор

how to display the old value of the book inside the input form when editing?

aguud
Автор

I am using next auth to protect my api route handlers and i am using Google oauth strategy. But when I send fetch request from server components i get unauthorized but when i send same request from client component i got the result . Why is this happening?

ayushkathariya
Автор

What is really confused me is the typescript.. i prefer the jsx.

mrspecial
Автор

i know this is minor but its prisma not prism

bitkillerjones
Автор

Forgot your password 😅 haven't uploaded any stuff.

prashlovessamosa