Login and Registration using MERN Stack | Mongo, Express, React and Node Authentication

Поделиться
HTML-код
  • Опубликовано: 20 ноя 2024

Комментарии • 219

  • @LEENAGUPTA-v6n
    @LEENAGUPTA-v6n 10 месяцев назад +24

    literally the simplest video of authentication by mongo db, hats of to you sir 😌😌

    • @happy_vlogs_sk
      @happy_vlogs_sk 10 месяцев назад

      Hi can you help me, If i try to do npm init vite it default take the project name like vite-project i can't able to change into client. There is no issues with the name of vite-project

    • @chhavigupta3581
      @chhavigupta3581 7 месяцев назад +1

      ​@@happy_vlogs_sk just start typing your project name over it
      bc the cursor won't actually work over it

  • @rohith3261
    @rohith3261 Год назад +56

    Bro believe me You're doing a great job for beginners like us by creating these simple apps using MERN thank you!!!!!

    • @aristrogaming2023
      @aristrogaming2023 Год назад

      Hi bro have you did this project, i need a source code of it

    • @starthorn1773
      @starthorn1773 11 месяцев назад

      Yes you are right

  • @UECSoumyaRay
    @UECSoumyaRay Год назад +17

    I must say, I am really impressed. This is exactly what I needed as a beginner. I will definitely recommend it to my noob friends like Ashutosh. BTW, if u r seeing this Ashutosh, do like this comment.

  • @thexarviz
    @thexarviz Год назад +9

    first ever video that i watched and coded perfectly without facing any extreme issues or errors. thanks a lot. it worked perfectly. SUBSCRIBED

    • @sulphatetife8600
      @sulphatetife8600 Год назад +2

      How did you get the signup.jsx source code ??

    • @KartikSharma-mv8vi
      @KartikSharma-mv8vi 11 месяцев назад +1

      hey can you please share me the source code , i am unable to navigate to home.js even after success message in console

    • @vishwamshah4509
      @vishwamshah4509 8 месяцев назад

      @@KartikSharma-mv8vi same problem how did u solve it please tell me thanks

  • @PRASHANTVIBE
    @PRASHANTVIBE 2 месяца назад +2

    Bro i am Searching it for 7 days . Thanks this what we need to implement in our coding

  • @muhammadafnan_8819
    @muhammadafnan_8819 Год назад +1

    your teaching method is very unique plz also bring full mern stack project tutorial like job portal,ecommerce,LMS etc it will be very benefit for us thank you

    • @codewithyousaf
      @codewithyousaf  Год назад +2

      Thank you, bro, I am working on a small e-commerce project.
      Next Week inshallah

  • @wardahshahid2758
    @wardahshahid2758 7 месяцев назад

    Thankyou Youasf, the project is very helpful for beginers.

  • @parth6661
    @parth6661 6 месяцев назад +2

    very good video for understanding the basics behind the login signup in MERN STACK. Thanksss bro.. You helped much for my project

  • @NagarajNagaraj-ct3qp
    @NagarajNagaraj-ct3qp 3 месяца назад +1

    Thank you so much brother finally i got a video with good explanation to connect react and backend

  • @karampinivasiliki1586
    @karampinivasiliki1586 Месяц назад

    Excellent video! Really simple and clear explanation. Thank you!

  • @deshanbandara4985
    @deshanbandara4985 Год назад +1

    um a begginer this really help full to me brother thank you!

  • @akashchilgar3737
    @akashchilgar3737 Год назад +9

    Thank you bro, this is really very helpful for beginners ❤🎉

  • @talhatalib5457
    @talhatalib5457 4 месяца назад

    Thanks Bro, Your Code Worked in my system in first Attempt. Your teaching methodology is epic. #WellDone!

    • @talhatalib5457
      @talhatalib5457 4 месяца назад

      LOGIN COMPONENT NOT WORKING CODE
      import axios from "axios";
      import { useState } from "react";
      import { Link, useNavigate } from "react-router-dom";
      function Login() {
      const [email, setEmail] = useState();
      const [password, setPassword] = useState();
      const navigate = useNavigate();
      const handleSubmit = (e) => {
      e.preventDefault();
      console.log("Login Button Pressed!");
      axios
      .post("localhost:3001/login", { email, password })
      .then((result) => {
      console.log(result);
      if (result.data === "Login Successful") {
      navigate("/component");
      }
      })
      .catch((err) => console.log(err));
      };
      return (

      Login Here!


      Email address
      setEmail(e.target.value)}
      />

      We`ll never share your email with anyone else.



      Password
      setPassword(e.target.value)}
      />






      Log Me In


      );
      }
      export default Login;

    • @talhatalib5457
      @talhatalib5457 4 месяца назад

      SERVER => PAKAGE.JSON WORKING CODE
      {
      "name": "server",
      "version": "1.0.0",
      "main": "index.js",
      "scripts": {
      "test": "echo \"Error: no test specified\" && exit 1",
      "start": "nodemon index.js"
      },
      "keywords": [],
      "author": "",
      "license": "ISC",
      "description": "",
      "dependencies": {
      "cars": "^1.1.6",
      "cors": "^2.8.5",
      "express": "^4.19.2",
      "mongoose": "^8.4.4",
      "nodemon": "^3.1.4"
      }
      }

  • @CrazyAshu34
    @CrazyAshu34 4 месяца назад

    I think this is the best video, & that's because it's shows top first on the search

  • @ridwanatolagbe3279
    @ridwanatolagbe3279 Год назад +3

    Thank you very much bro. The tutorial was so resourceful.

  • @Cric11Cricket
    @Cric11Cricket Год назад +1

    Thank you .This is very helpful video furthermore interesting for coders

  • @muhammadzawar1741
    @muhammadzawar1741 8 месяцев назад

    very great tutorial teach in a simple way

  • @DeveloperAchuchi
    @DeveloperAchuchi 11 месяцев назад

    Great work brother keep it up.
    This is the next big Channel

  • @rishabhsrivastava722
    @rishabhsrivastava722 Год назад

    Thankyou so much bhai please make videos like this It was my first mern project and I am very happy again thankyou bro

  • @thakurmohansingh-bv6ff
    @thakurmohansingh-bv6ff 10 месяцев назад

    Thank you so much for this amazing video🎉.. bcz you keep in mind like as a student visualisation...

  • @amanemisa2600
    @amanemisa2600 8 месяцев назад

    this is very helpful and direct to the point, thank you very much

  • @mcgndb
    @mcgndb 8 месяцев назад +1

    your explanation is very good and simple .....i request you please provide source code

  • @Nord-iq
    @Nord-iq Год назад

    اخيرا شرح براسة حظ تعبت واني ادور هيج شرح يااخي شكرا

  • @TradingLines-uj7ds
    @TradingLines-uj7ds 7 месяцев назад

    thank you for this vidio and plz add logout logic as well

  • @VishalYadav-gk1kg
    @VishalYadav-gk1kg 6 месяцев назад +1

    Very nice explanation sir, Thank you!

  • @Isayasdagne1
    @Isayasdagne1 Месяц назад

    it was great coding but try to write when you make change without video show of that❤ amazing coding

  • @БогданІнвестор
    @БогданІнвестор 10 месяцев назад +2

    Thank you! Everything is worked as you guided!

  • @dhananjaybramhane835
    @dhananjaybramhane835 7 месяцев назад

    Sir Apne MERN fullstack Development kaise Shikha ???
    Apaka kay mindset our Rodmap tha???

  • @freaky2615
    @freaky2615 Месяц назад

    It's a very useful video bro... thank you....✨

  • @Usmankhan-yr3dl
    @Usmankhan-yr3dl Год назад

    Brother I am a beginner in this field
    What should I learn first before watching this video ?

  • @djiddiadoum2357
    @djiddiadoum2357 Год назад +1

    Hi bro thanks for your help and we appreciate a lof. we learned much from these videos

  • @seemakumbhar8534
    @seemakumbhar8534 Год назад +17

    Where is source code

    • @rounakshahdeo7941
      @rounakshahdeo7941 6 месяцев назад +10

      Don't Look for source code A Good programmer Create own self ❤👍🏻

    • @kalihanter2609
      @kalihanter2609 3 дня назад

      😂😂😂

  • @nageshbc6392
    @nageshbc6392 4 месяца назад

    bro you are a legend! thank you for this wonderful video

  • @pieface4955
    @pieface4955 Год назад +6

    This helped so much and was very clear, thanks

  • @totallyvalid3160
    @totallyvalid3160 3 месяца назад +1

    Most excellent tutorial. Thanks!

  • @sharshtibaliyan166
    @sharshtibaliyan166 2 месяца назад

    Very helpful video ,Thankyou so much

  • @RichardMonné
    @RichardMonné 2 месяца назад

    Thanks a log ! very straightforward to understand.

  • @memesnow1324
    @memesnow1324 Год назад +5

    i learned alot from this video Thank you ❤

  • @nazranbibi
    @nazranbibi Год назад +1

    Thank you so much 😊 for making so easy.
    You are amazing 😊

  • @rockyalex8377
    @rockyalex8377 Год назад

    thank you so much.. this is exactly what i need as a beginner

  • @ezeldesilva2717
    @ezeldesilva2717 8 месяцев назад +2

    I tried to copy your code however employee was created in mongodb but collection data are not included prompting 500 internal server error...how to fix it?

    • @codewithyousaf
      @codewithyousaf  8 месяцев назад

      check adding a record API code

    • @ezeldesilva2717
      @ezeldesilva2717 8 месяцев назад

      Where can I check a record API code and what will I do...tnx

  • @_sf_editz1870
    @_sf_editz1870 Год назад +1

    Super helpful for beginners ❤

  • @EmnetMamo
    @EmnetMamo Год назад +1

    really beginner friendly, thanks

  • @tawoplays4722
    @tawoplays4722 Год назад +1

    Hello sir, uhmm can you try the mongodb atlas next? Cause i am having difficulties trying it on mongodb atlas using your code😅

  • @selvapandi1362
    @selvapandi1362 11 месяцев назад

    thankyou bro, it's worked for me bro, keep it up bro

    • @PriyaYadav-wi7ri
      @PriyaYadav-wi7ri 8 месяцев назад

      yrr mera code run nhi ho raha ek baar aap check krloge error bhi show nhi ho raha hai koi

  • @BANDLAHYNDAVIBCE
    @BANDLAHYNDAVIBCE Год назад +2

    unable to see the created table in atlas and data was shown [] like this

  • @yuvaengineer
    @yuvaengineer 10 месяцев назад

    mashallah brother maza aa gaya

  • @ferreiradelima96
    @ferreiradelima96 7 месяцев назад

    Excellent tutorial.

  • @UmerKhan-ro3dy
    @UmerKhan-ro3dy 3 месяца назад

    Best explanation ❤️❤️

  • @KuchOriemi
    @KuchOriemi 4 месяца назад

    Very helpful indeed thank you ❤❤

  • @abdellah-2498
    @abdellah-2498 Год назад

    Thank you so much duuuude, you really helped me !!

  • @relaxingtime2411
    @relaxingtime2411 10 месяцев назад

    Good Explanation ♥♥

  • @alishashaik7159
    @alishashaik7159 10 месяцев назад

    Thank you so much sir,u helped alot.🤗

  • @bhupenderkumar9508
    @bhupenderkumar9508 9 месяцев назад +1

    but bruh how to secure the home page ?. i mean only that user can access the home page who has logged in .

  • @ritikkumarsharma9489
    @ritikkumarsharma9489 Год назад +2

    what is user in the at 25:07 at 17th line

  • @chaudharikrunal-vh4mz
    @chaudharikrunal-vh4mz 2 месяца назад

    This is the best video ever ❤

  • @Burov96
    @Burov96 Год назад

    I am wondering why you did all that locally? I was looking to do it all on Mongoose online and live.

  • @accidentalgnius
    @accidentalgnius 3 месяца назад +1

    How are you connecting the Login page with your server?

    • @codewithyousaf
      @codewithyousaf  3 месяца назад

      I think I showed everything in video to connect it.
      1 create node app and implement route use that route to call API

  • @DanielAlves-im1np
    @DanielAlves-im1np Год назад

    Hello, Yousaf! You have a great channel, thanks a lot! I have frontend html+css+js file that I want to link to backend Java files, but this method uses jsx, can you please help me? It is really important for me

  • @Xenonxiz_
    @Xenonxiz_ 3 месяца назад +1

    sir my mongodb is automatically creating new "test" database and the employees are getting created inside it. How do i fix it?

    • @codewithyousaf
      @codewithyousaf  3 месяца назад +1

      in connection add database name after connection string it will create a new database

    • @Xenonxiz_
      @Xenonxiz_ 3 месяца назад

      @@codewithyousaf Thank you sir, how can i connect with you sir? I have some questions

    • @Xenonxiz_
      @Xenonxiz_ 3 месяца назад +1

      @@codewithyousaf for example how can i redirect two different accounts to two different components

    • @Xenonxiz_
      @Xenonxiz_ 3 месяца назад

      @@codewithyousaf can you do tutorial on this video sir?

    • @codewithyousaf
      @codewithyousaf  3 месяца назад

      @@Xenonxiz_ Yes role base management I explained you can watch on my channel

  • @GauravPatel-ly4ul
    @GauravPatel-ly4ul Год назад

    how we can add about us page after home i'm trying but giving children parents error .i dont want to open it direct without login

  • @veronicagitari1600
    @veronicagitari1600 8 месяцев назад

    I'm a beginner and I'm still stuck at the signup page
    My bootstrap i don't know why it has an error

  • @akilaindrasena1245
    @akilaindrasena1245 Год назад +3

    put the code in the discription please

    • @codewithyousaf
      @codewithyousaf  Год назад +4

      Here you can find the source code link:
      codewithyousaf.blogspot.com/2023/06/login-and-registration-using-mern-stack.html

  • @vedwagle1303
    @vedwagle1303 9 месяцев назад +2

    can you please provide the source code link of github

  • @Mangai-j7f
    @Mangai-j7f Месяц назад

    Bro im a noobie to backend i know react and front end and firebase ....i have lot of doubts if i use python django framework should i create a rest api and then only i can connect react and django ryt...but if i use express mongo i dont need rest api ryt...i can simply do llke u did ..pls clear this doubt😢

    • @Mangai-j7f
      @Mangai-j7f Месяц назад

      And bro I know front end ...but in the backend I have lot of confusions like how can I probably setup everything just tell what things I need to learn and how it must be used step by step as a short summary pls and pls clear doubt about rest api like when and where I need to use....pls pls pls no one helped me

  • @DcoderLLC
    @DcoderLLC Год назад

    Thank you bro this is very helpful.

  • @meghanajwala2971
    @meghanajwala2971 4 месяца назад

    Have a small doubt. Why can't the button "Login" be a part of the form tag?

    • @markjosephortizano5084
      @markjosephortizano5084 3 месяца назад

      Once you click login it will go login page.that's what he really do, also login has link already

  • @sukantabiswas3765
    @sukantabiswas3765 Год назад

    Bro is too good. Thank u so much.🙏

  • @RasalAnsar-i1e
    @RasalAnsar-i1e 8 месяцев назад

    crisp and clear

  • @ashishdharmik8214
    @ashishdharmik8214 Год назад +2

    Where is source code man

  • @ashanisuru3820
    @ashanisuru3820 Год назад

    If i input correct password i got "incorrect password" to my console how could that possible and can you tell me how to fix

  • @ukponginyang1216
    @ukponginyang1216 26 дней назад

    Please where' can i find the sign up form?

  • @Techify_ninja
    @Techify_ninja 2 месяца назад +1

    If u r uploading something on youtube then please explain it instead of just writing it

  • @Moya_tigrigna
    @Moya_tigrigna 8 месяцев назад

    what amazing tutorial !

  • @emmanuelomozuafo2364
    @emmanuelomozuafo2364 Год назад

    How do we add error message if the input is incorrect.

  • @Yonatan2479
    @Yonatan2479 8 месяцев назад +1

    where is the github source code????

  • @Bharat-lz5lh
    @Bharat-lz5lh Год назад

    Very nice

  • @TheAdventuresEye
    @TheAdventuresEye 2 месяца назад

    why are you using link Tag insted of button on form submit

  • @Praveen-pg6zb
    @Praveen-pg6zb Год назад

    Thank you bro, really great 🎉

  • @nagaprakashnagu7596
    @nagaprakashnagu7596 6 месяцев назад

    I GOT axios NETWORK ERROR ? PLEASE GIVE SOLUTION i tried three more time

  • @Soulof8d
    @Soulof8d 7 месяцев назад

    thank you bro :)

  • @prashant_kb
    @prashant_kb День назад

    table is not creating

  • @PreethibunnyAsadi
    @PreethibunnyAsadi 9 месяцев назад +1

    it's good explantion sir but id not get data it shoeing empty data
    {
    "_id": {
    "$oid": "65c9a6c0fdc2b71ce384a46c"
    },
    "__v": 0
    } just like that but how to solve issue here

    • @codewithyousaf
      @codewithyousaf  9 месяцев назад

      the database id name is like: (_id) use it when you deal with database

  • @elhamyadira
    @elhamyadira Год назад

    Thank you soooooooooooo much. This worked.🥰

  • @ROHITSINGH-mn3lt
    @ROHITSINGH-mn3lt 17 дней назад

    dont you think you need to provide source code as well.

  • @uiteach123
    @uiteach123 8 месяцев назад

    I am using this mathod but cannot find data in user \

  • @06-bhaveshrathod40
    @06-bhaveshrathod40 8 месяцев назад

    getting errors Localhost refuse to connect i did everything same

  • @md.marufbinsolaiman4038
    @md.marufbinsolaiman4038 5 месяцев назад

    very helpful buddy.

  • @faizalam1893
    @faizalam1893 Год назад

    Well, do not inform the user that whether email/username or password is incorrect, just display Login Failed.

  • @ajaykumark8817
    @ajaykumark8817 10 месяцев назад

    will you explain me how to host this website on any free website?

  • @alfaloverss3116
    @alfaloverss3116 7 месяцев назад

    If i deploy my project so its work ???

  • @ShashiBhusalComputing
    @ShashiBhusalComputing 10 месяцев назад

    Thanks brother you are greate

  • @aakashmane4451
    @aakashmane4451 9 месяцев назад

    forgot to teach how to join backend and frontend using cors

  • @djiddiadoum2357
    @djiddiadoum2357 Год назад

    please i have a problem can someone assist me? why useState is underlined in red in my code?

  • @Druth-z4l
    @Druth-z4l 11 месяцев назад +1

    bro i dont know how to run please could u help me with it

  • @williamosullivan8366
    @williamosullivan8366 Год назад

    bro do you have the regulation signup code?

  • @devsavvy9
    @devsavvy9 11 месяцев назад

    Thank you very much❤❤

  • @kumarabhishek3890
    @kumarabhishek3890 6 месяцев назад

    where can i get the signup.jsx code please tell

  • @nageshmane_14606
    @nageshmane_14606 5 месяцев назад

    Thank Your Sir 🤗

  • @pruthvieditz-hl4ws
    @pruthvieditz-hl4ws 9 месяцев назад

    Bro we need source code for signupform can you provide???