NextJS fullstack course | Signup and login

  Рет қаралды 89,741

Hitesh Choudhary

Hitesh Choudhary

Күн бұрын

Пікірлер: 183
@antoniors
@antoniors 4 ай бұрын
Thanks for these videos, they're awesome. I have a remark for you and others to improve React apps: 1. Use of useEffect: useEffect is typically used for side effects like fetching data, subscribing to events, or interacting with the DOM outside of React's normal rendering cycle. In your scenario, checking whether a form button should be disabled based on form data doesn't need to be handled by useEffect because it doesn't produce side effects. It's a derived state that can be computed directly from the current state of the form data. 2. Avoid Unnecessary State: Creating a separate state variable (isDisabled) to track if the button should be disabled isn't necessary if it can be derived from the form data. Instead of using useState and useEffect, you can derive this directly within the render function. Thanks and have a great day everyone.
@mehtaparam
@mehtaparam Жыл бұрын
I just started yesterday and I am very grateful to watch them. till now I was ionic - angular developer but am now pretty confident to learn new tech in my basket. Thank you for great efforts i know what it takes to create this kind of tutorial video. Happy Learning and Big Thanks.
@Joel2Million
@Joel2Million 4 күн бұрын
great stuff, I managed to get my own variant working thanks to this, it's very similar but I don't use routes, I use server actions. and I managed to avoid any "use client" files so far, not that they're bad to use, this is mostly for educational purposes so trying to test the limits of what I can do without client side javascript
@osuolaleabdullahi9121
@osuolaleabdullahi9121 Жыл бұрын
I love how fast these videos are coming... It keeps my learning energy on track... Thanks Hitesh ❤
@rammondal8147
@rammondal8147 Жыл бұрын
Thanks a lot for bringing the Next.js videos with Login / Signup mechanism.
@whiskeyagogo_
@whiskeyagogo_ 10 ай бұрын
Great video, clear and well explained. Helped me understand tokens (which I've used on other projects but just was going through the motions...)
@saskirakosyan5268
@saskirakosyan5268 6 ай бұрын
grate tutoral. But what you think about this? For the login page, it's generally recommended to use server-side rendering (SSR) when it's a part of the application's route pages. Client-side rendering (CSR) may not be the best option for the login page.
@guitadharsh2499
@guitadharsh2499 Жыл бұрын
Thankyou so much for this amazing course. This course is very easy for somebody have some expreinced in mern stack
@omsaurangpate9837
@omsaurangpate9837 Жыл бұрын
Thank you so much for Next Js series❤
@nahidulfahim
@nahidulfahim 8 ай бұрын
Really love this. It's super easy to understand and execute the code.
@irfansaeedkhan7242
@irfansaeedkhan7242 10 ай бұрын
i got internal error 500 in console of frontend but still data was added to mongodb
@atvmoviedigest
@atvmoviedigest Жыл бұрын
Finished the 1st video and now I don't need to wait for the second one 😻
@mtyj20
@mtyj20 5 ай бұрын
Great tutorial. Thanks very much, now I'm starting to understand this concept much better
@explainyourself8788
@explainyourself8788 Жыл бұрын
if anyone having a issue with [ OverwriteModelError ], put this mongoose.models = {}; to clear cache from mongoos. Just before you define the "User" model.
@mohdimran5519
@mohdimran5519 Жыл бұрын
thanks
@PJlikePajamas
@PJlikePajamas Жыл бұрын
This was sooo helpful! Thank you I have been trying to figure out the work around for way too long at this point
@ScienceExamine
@ScienceExamine 11 ай бұрын
You can solve it using error handling also Use this code -- let User: Model; try { // Try to get an existing model by the name 'User' User = mongoose.model('User'); } catch (e) { // If the model doesn't exist, define it User = mongoose.model('User', userSchema); }
@ayushdedhia25
@ayushdedhia25 9 ай бұрын
Or you can also do something like: const User = mongoose.models.User || mongoose.model('User', userSchema);
@syedmuhammadammad558
@syedmuhammadammad558 2 ай бұрын
Thanks
@coffeewithjava5625
@coffeewithjava5625 Жыл бұрын
Love your smile. Great work Hitesh. 😊
@mitalimonga7996
@mitalimonga7996 5 ай бұрын
Thanks so much for this video. Could you also make a video of auth setup and connection with springboot as backend
@AhmadHassan-hb3lb
@AhmadHassan-hb3lb Жыл бұрын
Bro Your extensions are just mind blowing... please tell us more about them specially the one which is giving the answer of console.log on editor
@jayyap39
@jayyap39 Жыл бұрын
@hitesh, thanks for your tutorial, can you share with us which suggestion extension you're using?
@rijinjoel7668
@rijinjoel7668 Жыл бұрын
@@jayyap39 github copilot
@devashishrai3458
@devashishrai3458 Жыл бұрын
Console Ninja It is the extension for VSCode
@SachinKumar16022001
@SachinKumar16022001 Жыл бұрын
Thank You Hitesh Sir for all this content. Its really helpful.
@himankshu
@himankshu 7 ай бұрын
31:55 thats why i dont use tailwind. I use module.css from Next JS. If I need to change the style then I will have to change it everywhere in the codebase while working with Tailwind. But with module.css, just change at one place and it is already affected everywhere. Maintaining a project is a huge task than creating it. I dont know about the future of Next JS if companies started choosing other languages other than JS/TS.
@ozgunmunar
@ozgunmunar Жыл бұрын
Everything I was looking for. Thanks for the video.
@jaydip99
@jaydip99 8 ай бұрын
Hi Hitesh, Thanks for this course. You are a lifesaver. REQUEST: I am trying to limit the user login to 1 screen (i.e if user A is logged in from device 1 and tries to login from device 2, it should be logged out from device 1 -- like netflix). Any help would be appreciated. Thank you 🙏
@dragnoedits6721
@dragnoedits6721 Жыл бұрын
sir please tell please error a rha hai end me jab login kar rha to router push nhi kar rha profile page me apne kaise thik kiya mera to nhi hua dobara start bhi kiya Failed to load resource: the server responded with a status of 400 (Bad Request) page.tsx:29 Login failed AxiosError
@anandstephan6020
@anandstephan6020 8 ай бұрын
code bhejna ek baar
@VijayRengarajan-q9x
@VijayRengarajan-q9x 6 күн бұрын
If you don't mind, can you tell me how I can get code suggestions as shown in this video? Is there any extension I need to install to get code suggestions ?
@Aditya-qx7nf
@Aditya-qx7nf 6 күн бұрын
i think there is one for github copilot and he used that, btw are you getting tokens ? In cookies section i am getting nothing
@aditya_kanu
@aditya_kanu Жыл бұрын
Just finished the first video and thought maybe have to wait for a week or so but... Guess today's an allnighter for us.
@HiteshCodeLab
@HiteshCodeLab Жыл бұрын
Same for tomorrow
@bahabelomgebremedhn2318
@bahabelomgebremedhn2318 4 ай бұрын
i love the exiting way of learning
@noname-oo3xr
@noname-oo3xr Жыл бұрын
Thank you for your tutorials. Is there a resaon for not using form onSubmit here ? I can t make any react hooks working in "use client" components in this next13 app router setup actually.
@jayyap39
@jayyap39 Жыл бұрын
@hitesh, thanks for your tutorial, can you share with us which suggestion extension you're using?
@NitishJha-s6l
@NitishJha-s6l 4 ай бұрын
no response from client side calling during signup. Data is getting stored in db. Reponse arrives when callinfg through postman. Im stuck for 2 hrs. Please rely if someone resolve it
@yuvalbra
@yuvalbra 11 ай бұрын
great tutorial, i need to work with mysql what can i need to change? second q: if i need to create the forget password
@amansarma417
@amansarma417 Жыл бұрын
Which theme are you using it looks really nice. Please tell me
@HiteshCodeLab
@HiteshCodeLab Жыл бұрын
Custom coded
@prajwalgade8804
@prajwalgade8804 8 ай бұрын
48:00 minutes what u have in u r .env file what should we add u didn't told us what to add in our .env file?and how to do that?
@dharmikshah7317
@dharmikshah7317 Жыл бұрын
your VSCode inline quick suggestion are too experts, how you done that?
@GMERT
@GMERT 11 ай бұрын
Good day Mr. please I am having problem in creating the reset password. I did a page to first confirm the mail if it's on db then Next to reset password page. While on reset password I think I don't get how to call the PUT to update the password .. I am only getting error 404 and no message is sent to the mailtrap. pls help me out. God bless you.
@VarunKumar-n1d
@VarunKumar-n1d Жыл бұрын
sir when some topics come in between like API or in Creating models i can understand it would be difficult to teach every basics but if someone does not have a good understanding in certain topics like me then you should suggest your videos or you should link your videos from where we can clear our basics and then come back to this video
@santoshsunda2638
@santoshsunda2638 Жыл бұрын
Yes
@toTheMuh
@toTheMuh 10 ай бұрын
If you are not familiar with basic concepts like API or modelling then it might be too early for you to jump into frameworks like nextjs and that is totally fine. Take your time to master the basics before learning any framework
@VarunKumar-n1d
@VarunKumar-n1d 10 ай бұрын
@@toTheMuh it's true
@AlokYadav-ly4ps
@AlokYadav-ly4ps 8 ай бұрын
I am getting a problem of restarting the server everytime about I have to add a user after first time I always have to restart it. any help
@io_inc
@io_inc 8 ай бұрын
also have the same issue
@syedmuhammadammad558
@syedmuhammadammad558 2 ай бұрын
​@@io_inc yes I m facing same issue
@tirthpatel8805
@tirthpatel8805 Жыл бұрын
Hey , amazing video . Could you please tell me the extension which gives such brilliant suggestions
@mdalmamun9636
@mdalmamun9636 Жыл бұрын
on the same way I also facing problem on login to the application but my problem was not solved with server restart I was looking for the line creating problem and finally got problem to generating token. how I solved problem reinstall the jwt library and restart the server again.
@devjariwala8576
@devjariwala8576 8 ай бұрын
@hitesh can you tell me about this theme extention and those code suggetion extention
@sumitsinha995
@sumitsinha995 8 ай бұрын
bhaiya endpoint dikat de rha ,documentation pad rha .api ko pages folder mei rakne bol rahe. Dekhtha hu R&D karke..
@muhammadusmanakram406
@muhammadusmanakram406 Жыл бұрын
why you are using use client on server side component?
@musaddiqbabar2029
@musaddiqbabar2029 Жыл бұрын
sir hitesh whcih auto sugestion extension you are using please tell me
@DeepakAashrmiya
@DeepakAashrmiya Жыл бұрын
sir you didnt explained what is NextRequest whaever it is ti works with ts i suppose, and my brain is dead to understand how to do so with normal js .......
@mahfuzrahman4370
@mahfuzrahman4370 10 ай бұрын
i can not solve the login problem. I using next 14.0.4
@imanelaaraj375
@imanelaaraj375 6 ай бұрын
hello thanks for vidio please when I run my project the css not function
@abusivedelhi
@abusivedelhi 4 ай бұрын
getting redirected to profile page even after entering the wrong email and password on login page
@codex8797
@codex8797 11 ай бұрын
Thanks man, really helped me with a personal project
@VarunKumar-n1d
@VarunKumar-n1d Жыл бұрын
the whole hour passed by like 5 minutes but i am having confusion in models and schema the code there written in last line
@HiteshCodeLab
@HiteshCodeLab Жыл бұрын
I can understand, need to plan a series on backend in depth because this is not nextjs issue, this is backend understanding issue
@nehapatil1828
@nehapatil1828 Жыл бұрын
Thank You So much Sir for the great tutorial and content knowledge and I have learned a lot
@rohangope
@rohangope Жыл бұрын
"users validation failed: usernames: Please provide a username" I got this error . What might be wrong here? Please help.
@abuhossain4274
@abuhossain4274 Жыл бұрын
lovely lessons it come late or early ??
@tech_channel110
@tech_channel110 Жыл бұрын
thank you thank you very much for all theses valueable video it deserve million views
@theJokerrrrrr
@theJokerrrrrr Ай бұрын
For anyone getting the error :- Failed to load resource: the server responded with a status of 500(Internal Server Error) page.jsx.39 Login Failed Request failed with status code 500 To solve this we shouldn't use 'await' before jwt.sign The Error occures here :- const token = await jwt.sign(tokenData,process.env.TOKEN_SECRET, {expiresIn: "1d"}); The 'await' shouldn't be there. Remove it and Bam, your error solved. Hope it helps someone :) Edit :- For anyone wondering why even this occurs. It occurs because jwt.sign() is a synchronous function, not an asynchronous one. So yup we shouldn't ever use 'await' with "jwt.sign"
@tejender_kumar
@tejender_kumar Жыл бұрын
im encountring one problem , i have to restart server to create an new account each time otherwise im getting error OverwriteModelError: Cannot overwrite `User` model once compiled..someone please help
@yogyyconst
@yogyyconst 8 ай бұрын
so, not using server action yet ?
@sumitbhardwaz
@sumitbhardwaz Жыл бұрын
These Bombs are as powerful as nukes. Loving it❤
@trying-code3726
@trying-code3726 11 ай бұрын
this is the best video on youtube ....
@codeforlifehere
@codeforlifehere Жыл бұрын
how are you getting such a great suggestion while code, also great explanation
@samcharo
@samcharo Жыл бұрын
Git hub copilot, prettier.
@RandomClips-bd
@RandomClips-bd 8 ай бұрын
How can i change the database name test to anyName??
@sinnis_879
@sinnis_879 Жыл бұрын
🤚DOUBT: sir at time 45:10 you said the compare method from bcryptjs will handle it. but sir we also added salt value = 10 at signup route. then we should also tell to bcryptjs that salt is 10 otherwise how will it know and compare the value.🤔🤔
@beratyilmaz7951
@beratyilmaz7951 Жыл бұрын
it can see salt in token
@herahadi
@herahadi Жыл бұрын
adding the part number may be can easily for us to learn in a correct order
@HiteshCodeLab
@HiteshCodeLab Жыл бұрын
It's there in thumbnail, Nice and Big
@kushsharma862
@kushsharma862 Жыл бұрын
Again same as previous video , I learn some new things and get confused at other parts like what is happening. I think I'm facing problem in understanding the logics behind some functions
@nikhileligar3318
@nikhileligar3318 11 ай бұрын
I m getting api not found api/users/signup
@ankushladani496
@ankushladani496 Жыл бұрын
Ohhh 😮 Uploading videos very fast...
@kiranjanagam6733
@kiranjanagam6733 Жыл бұрын
When will you upload AWS videos. Waiting for AWS tutorial . If it will take time,Please share the best platform to learn AWS Thank you for your great videos
@kartikrajput2131
@kartikrajput2131 Жыл бұрын
aws faq section
@anthonymanley2143
@anthonymanley2143 Жыл бұрын
Great stuff. This is very helpful.
@vinitborad
@vinitborad Жыл бұрын
Are you from Surat or Gujrat ?
@WhitneyGrenaway
@WhitneyGrenaway Жыл бұрын
Thank you, your videos have been very helpful.
@KaustabRoy-w6v
@KaustabRoy-w6v 5 ай бұрын
best tutorial ever !! Thanks
@MayankSahu-n1t
@MayankSahu-n1t 8 ай бұрын
Thanks a lot sir i just love your content
@rajanacharya6360
@rajanacharya6360 Жыл бұрын
Jumping toward NextJs with this video, but not been able to hit API routes made in API section. It's simply giving me 404.
@rajanikantpattnaik8981
@rajanikantpattnaik8981 Жыл бұрын
same too
@harisjabbar3280
@harisjabbar3280 11 ай бұрын
Is this video available in hindu, urdu
@sriramvenkatesh
@sriramvenkatesh Жыл бұрын
Thank-you sir. Very very helpful..
@AbhishekCodeLab
@AbhishekCodeLab 10 ай бұрын
@hitesh very nice video, please create nextAuth firebase authentication series
@HiteshCodeLab
@HiteshCodeLab 10 ай бұрын
Very soon
@UzairAnsari-wx6lh
@UzairAnsari-wx6lh Жыл бұрын
Thank you so much I love the way you teach .
@sayantanX
@sayantanX Жыл бұрын
Thank you hitesh sir!
@ChoShingLeung-e9v
@ChoShingLeung-e9v Жыл бұрын
Intro 0:00 Mongoose setup 1:35
@CMShreyasGopnarayan
@CMShreyasGopnarayan Жыл бұрын
Thank you so much for making such great videos
@rovu7260
@rovu7260 5 ай бұрын
Awesome! thank you!
@online_sourcecode1613
@online_sourcecode1613 Жыл бұрын
no doubt content is awesome, but apni urdu/hindi language ka maza hee kuch or he sir g, kindly hidni ya urdu mein videos banaain interest tab hee ata he like codewithharry, apnacollege etc
@HiteshCodeLab
@HiteshCodeLab Жыл бұрын
Vo b krte h, hindi channel pe 🙂
@UserAliyev
@UserAliyev 7 ай бұрын
please take a video about uploading file in register
@surafelnegaalemayehu1080
@surafelnegaalemayehu1080 9 ай бұрын
thank you bro for all effort investing on my skill
@arunsuthar4783
@arunsuthar4783 Жыл бұрын
Just started learning next js and ur video 😂😂
@maha33612
@maha33612 Жыл бұрын
Please anyone can help me with mongo db? I have followed along the video completely nothing is showing error the problem is that when I enter data on the sign up it shows in terminal that it has been successfully added to the mongo db, but does not shows up in mongo db, I have refresh also but at the account in browse collecttion iy does not show anything . please guide me !
@_RishiYadav
@_RishiYadav Жыл бұрын
Same here bro... Have you resolved this problem. I am also facing this issue. On client side everything is working fine and signing up successfully and routing to login page. But data is not showing anywhere in the database. If you resolved this please help
@maha33612
@maha33612 Жыл бұрын
@@_RishiYadav No bro, I didn't got the solution I asked someone he said there must be error in code, I don't know what's the issue I am not seeing any error I have leave it may be I am new to mongo db thats may be happening I am not getting it understanding properly.
@videoaudio7669
@videoaudio7669 Жыл бұрын
same issue. Don't know why
@abduddaiyan5815
@abduddaiyan5815 Жыл бұрын
Great lecture 🎉
@mkmahi-k6x
@mkmahi-k6x 9 ай бұрын
{"error":"Operation `users.findOne()` buffering timed out after 10000ms"}
@theJokerrrrrr
@theJokerrrrrr Ай бұрын
Little late but is should be 'User.findOne()'. Maybe this was causing the error?
@debmalyaray1997
@debmalyaray1997 Жыл бұрын
sir I want to contact ineuron for courses. Your team didnot contact me.
@swarnpallavbhaskar4424
@swarnpallavbhaskar4424 10 ай бұрын
Can someone please help with naming database while configuring it?
@bm9code
@bm9code Жыл бұрын
40:00 I thought only im getting the error in console still how many are getting that error, what might be the reason and hoe to resolve
@goudarapavankumar2477
@goudarapavankumar2477 8 ай бұрын
Hi, did it resolved ? can post the solution if its resolved please.
@Ankitsarwal
@Ankitsarwal 6 ай бұрын
In a single day i have studying above 10 hour
@jancarloscastanareszemelka8357
@jancarloscastanareszemelka8357 9 ай бұрын
good stuff man!
@umersiddiqui4530
@umersiddiqui4530 Жыл бұрын
beautifully explained
@faisalmushtaq2287
@faisalmushtaq2287 Жыл бұрын
Crazy stuff!!! Thanks alot
@HiteshCodeLab
@HiteshCodeLab Жыл бұрын
Glad you enjoyed it
@kulpushpak
@kulpushpak Жыл бұрын
Can someone share previous video link?
@irfansaeedkhan7242
@irfansaeedkhan7242 Жыл бұрын
playlist link ?
@jyotishmangoswami616
@jyotishmangoswami616 Жыл бұрын
nice explained
@jeetsorathiya
@jeetsorathiya Жыл бұрын
Hitesh 🦁🔥❤
@male3399
@male3399 Жыл бұрын
Do this use nextAuth?
@VISHNUKUMAR-xe7rd
@VISHNUKUMAR-xe7rd 5 ай бұрын
Nope... He is creating APIs for login and signup.
@Ankitsarwal
@Ankitsarwal 6 ай бұрын
Almost i completed 3 project using react and next js
@kartikrajput2131
@kartikrajput2131 Жыл бұрын
Just completed part 1 of this series
@DevaMhatreAtBB
@DevaMhatreAtBB Жыл бұрын
*4: 00 AM* is just a common thing...!😌
Middleware in nextjs | Nextjs fullstack course
41:39
Hitesh Choudhary
Рет қаралды 43 М.
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 74 МЛН
Это было очень близко...
00:10
Аришнев
Рет қаралды 5 МЛН
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 8 МЛН
Бенчик, пора купаться! 🛁 #бенчик #арти #симбочка
00:34
Симбочка Пимпочка
Рет қаралды 3,5 МЛН
Registration with Ultimate debugging and refactoring
1:01:37
Hitesh Choudhary
Рет қаралды 3,9 М.
Next js Tutorial for Beginners | Nextjs 13 (App Router) with TypeScript
1:02:55
Programming with Mosh
Рет қаралды 695 М.
Implement Clean Architecture in Next.js
53:07
Lazar Nikolov
Рет қаралды 26 М.
Viral Video of a Man's Crazy Job Interview
16:02
Darryl Vega TV
Рет қаралды 1,4 МЛН
I want this SO BAD (but I can't have it) - Huawei Mate XT Ultimate Design
13:54
User verification email in nextjs
56:04
Hitesh Choudhary
Рет қаралды 29 М.
Next.js App Router Authentication (Sessions, Cookies, JWTs)
11:31
The Complete Backend Developer Roadmap [2024]
8:24
Programming with Mosh
Рет қаралды 244 М.
Wordpress Open Source drama
15:46
Hitesh Choudhary
Рет қаралды 37 М.
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 74 МЛН