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.
Seed user data - Next.js Tutorial
From the course: Next.js Ecommerce: Build a Shopping Platform from Scratch
Seed user data
All right, so we're going to add some users to our Cedar. But before I do that, I just wanted to mention that when you make a push to GitHub, which I just did, it's going to also deploy on Vercel. And if you go to your project and you go to Deployments, you'll be able to see that. So this right here, this is my current deployment posted two minutes ago. And you can see the comment is Prisma user-based models. So after the last video, I did a commit. And then I pushed to GitHub. And then I just came here, and I saw this was deploying. So now we have the latest version of our project is in production. So my suggestion would be to just kind of keep these open somewhere. Keep your production site and this page, the deployments, open, because every time it pushes, it'll create a new deployment. And it will show an error here, and it will have your logs if something went wrong. So that way you can, like I said before, catch issues as they come in. So I'm just going to leave this open…
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 intro2m 57s
-
(Locked)
Prisma user-related models9m 45s
-
(Locked)
Seed user data7m
-
(Locked)
NextAuth setup17m 31s
-
(Locked)
NextAuth catch all API route4m 12s
-
(Locked)
Sign-in and sign-out server actions8m 27s
-
(Locked)
Auth layout and sign-in page6m 58s
-
(Locked)
Credentials sign-in form6m 39s
-
(Locked)
Hook up sign-in form9m 28s
-
(Locked)
Callback URL redirect4m 26s
-
(Locked)
User button and sign-out11m 48s
-
(Locked)
Signup Zod schema and action8m 15s
-
(Locked)
Sign-up page and form7m 35s
-
(Locked)
Sign-up error handling12m 40s
-
(Locked)
Customize token with JWT callback8m 19s
-
(Locked)
-
-
-
-
-
-
-
-
-
-
-
-
-