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 - Next.js Tutorial
From the course: Next.js Ecommerce: Build a Shopping Platform from Scratch
Section intro
So in this section, we're going to continue on with the Admin area. We have the Overview page. We have the Orders. Now we want to be able to manage products, including Create, Read, Update, and Delete, as well as implement product images so that we can upload images. So we'll start off by creating an action and a page to get and display the products. Then we want to add the ability to delete products. So we're going to use the Delete Dialog component that we use for the Orders. And we're going to be able to create products. So we'll have a form. We'll have an action. And the form will also have a button to slugify the title. So if it's called, like, hello space world, and we click slugify, it will make it hello dash world, all lowercase. And then we're going to be using a service called upload thing for our file upload. So we want to config that. And then we want to be able to update, or I'm sorry, upload the product images through the form. And then there's also the ability to make a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Section intro1m 11s
-
(Locked)
Get products for admin page8m 24s
-
(Locked)
Display products7m 55s
-
(Locked)
Delete products4m 16s
-
(Locked)
Create and update actions8m 30s
-
(Locked)
Create product page and form9m 35s
-
(Locked)
Form fields and slugify13m 27s
-
(Locked)
Create product form submission6m 23s
-
(Locked)
Uploadthing configuration8m 9s
-
(Locked)
Add image upload12m 56s
-
(Locked)
Product cleanup7m 57s
-
(Locked)
Is featured banner8m 55s
-
(Locked)
Product update form9m 57s
-
(Locked)
-
-
-
-
-
-