From the course: Next.js Ecommerce: Build a Shopping Platform from Scratch

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Section intro

Section intro

So now we're going to create the user area and this will be an area where users can see their orders So any order they make they'll that'll show up here as well as update their profile They don't have a lot of information in their profile right now It's pretty much just the name and e-mail and they'll just be able to update their name But if you want to add other fields later, of course, you could do that so we'll start off with the user area layout and the menu because it's going to have its own layout and we'll have a menu to view the orders as well as update the profile. Then we're going to create the the get user orders action which will do just that it'll get all the user orders. We're also going to implement pagination because if you have a ton of orders you don't want to fetch them all and show them all on the page you want to get you know little bits at a time. And then we're going to create the update profile action which is really simple. I just want to users to be able to…

Contents