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 ready to start creating the admin area. And this will allow users with the admin role to manage products, orders, and customers. So it's going to have its own layout, much like the user area. And there'll be a separate admin menu here. And we're going to have an admin overview page with things like the total revenue, the recent orders, number of products and customers. And we'll even have a cool chart that will show sales data by month. And we're going to need to create the action for that as well as the UI. And we're going to be using a library called Recharts to show the monthly sales in a bar chart. Then we want to do the orders page so that admins can see all of the listed orders. We want to be able to delete the orders, so we'll do that with a nice alert dialog from ShadCN. And then we also want admins to update cash on delivery orders to be paid and delivered.

Contents