How to use postman for backend

Поділитися
Вставка
  • Опубліковано 23 сер 2024
  • Visit chaicode.com for all related materials, community help, source code etc.
    Welcome to chai aur code, a coding/programming dedicated channel in Hindi language. Now you can learn best of programming concepts with industry standard practical guide in Hindi language.
    All source code is available at my Github account:
    github.com/hit...
    Our Open-Source Project is here: freeapi.app
    Join me at whatsapp: hitesh.ai/what...
    for community discord: hitesh/ai/discord
    Instagram pe yaha paaye jaate h:
    / hiteshchoudharyofficial
    HTML video series: • HTML and VSCode - gett...
    Complete javascript series: • Javascript for beginne...
    Complete Reactjs series: • React JS roadmap | cha...
    Javascript and react interview series: • 1 call se shuru hui pl...
    Backend development with Javascript: • Javascript Backend Roa...

КОМЕНТАРІ • 1 тис.

  • @Eclipssed
    @Eclipssed 9 місяців тому +65

    Sir at 11:05, when you were facing an issue with fullName. Actually the issue was with the fullName spelling. You spelled it "fulName". Check it out.

    • @ExploreSciFi
      @ExploreSciFi Місяць тому

      bhai log mara system mei wo mongobd atlas aur cloudinary py upload ho rha hai laking mujy postmon mei mongodb server error dei rha hai keh rha hai localfield can't be empty string, jb ki mein sab de rha hou aur wo upload b ho rha ha.... plesae attention and help ????

    • @014_teevrabhandari4
      @014_teevrabhandari4 Місяць тому

      @@ExploreSciFi Getting 500 internal server error.
      Error: ENOENT: no such file or directory, unlink 'D:\Backend\ChaiBackend\public\temp\profileGithub.jpg'
      at uploadOnCloudinary (file:///D:/Backend/ChaiBackend/src/utils/cloudinary.js:22:12)
      at file:///D:/Backend/ChaiBackend/src/controllers/user.controllers.js:66:30
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

  • @ramannagwan8812
    @ramannagwan8812 6 місяців тому +20

    Initially I found difficulty in backend but now understand flow of code after watching these videos.

    • @ExploreSciFi
      @ExploreSciFi Місяць тому +1

      i am watching and practicing and understanding little bit 😢 😢

  • @user-ni1qd4gk2f
    @user-ni1qd4gk2f 9 місяців тому +6

    nice video thank you so much Sir
    😍😍😍😍
    00:03 Expect bugs in your code and debug it with attention
    01:59 Using Postman for backend testing and sharing collections
    06:03 Selecting and adding files in Postman for backend
    08:03 Debugging and issue checking is important in backend development.
    12:50 Using postman to upload and retrieve images in the backend
    14:45 Automatically remove uploaded files for testing purposes
    18:28 Issue of undefined property in JavaScript
    20:17 Check if the request.data files have come and whether it is properly an array or not
    23:58 Using Postman for backend development
    25:32 Using Postman to create and organize collections
    29:22 Using Postman for backend: Registering and sending requests
    31:22 Using Postman for backend development allows for easy uploading and saving of files.
    35:15 Fix all the bugs in the register controller
    😍😍😍😍

  • @arghya_0802
    @arghya_0802 7 місяців тому +4

    Been on a problem for more than 2hrs, but finally debugged it myself. Initially, I didn't send the password while creating the user object. Earlier I used to panic a lot but due to Hitesh sir teaching and his continuous impetus on debugging, I don't fear errors anymore ❤❤

  • @GagandeepSingh-ip8dm
    @GagandeepSingh-ip8dm 6 місяців тому +6

    A perfect video (playlist) for backend developers, it just teaches you so much and always keeps you in curiosity how things work behind the scenes.

  • @abhimanyupayasi
    @abhimanyupayasi 9 місяців тому +24

    00:03 Expect bugs in your code and debug it with attention
    01:59 Using Postman for backend testing and sharing collections
    06:03 Selecting and adding files in Postman for backend
    08:03 Debugging and issue checking is important in backend development.
    12:50 Using postman to upload and retrieve images in the backend
    14:45 Automatically remove uploaded files for testing purposes
    18:28 Issue of undefined property in JavaScript
    20:17 Check if the request.data files have come and whether it is properly an array or not
    23:58 Using Postman for backend development
    25:32 Using Postman to create and organize collections
    29:22 Using Postman for backend: Registering and sending requests
    31:22 Using Postman for backend development allows for easy uploading and saving of files.
    35:15 Fix all the bugs in the register controller
    😍😍😍😍

    • @techinfo4623
      @techinfo4623 9 місяців тому

      do you know what theme he is using?

    • @ravishbisht502
      @ravishbisht502 9 місяців тому

      Mera to uploadOnCloudinary function me catch wala block chlra ha usi ko debug krr raha hu 2 ghante se😂

    • @RobinsonJohn-hy4br
      @RobinsonJohn-hy4br 7 місяців тому

      @@techinfo4623 Chai Theme

    • @user-iu5jv2ol4k
      @user-iu5jv2ol4k 7 місяців тому

      @@techinfo4623 chai theme--> on vs code

    • @rohitshrivastavdotcom
      @rohitshrivastavdotcom 7 місяців тому

      @@techinfo4623 chai theme

  • @vishal-shinde
    @vishal-shinde 5 місяців тому +3

    great video.
    I am learning new things.
    in my previous backend project, I realise, I have done so many bad practices, now I will improve upon my old projects with newly learned practices.

  • @user-rj6cl1zs2f
    @user-rj6cl1zs2f 5 місяців тому +2

    sir, you are way too good. This level of content on youtube is next to impossible to find, but you made it available to us for free. Really, thanks a lot sir.

  • @-246sa
    @-246sa 6 місяців тому +5

    ek akela channel jo aapko sabkuch professionally sikhata hai wo bhi free me thank you so much sir 💗

    • @ExploreSciFi
      @ExploreSciFi Місяць тому

      bhai log mara system mei wo mongobd atlas aur cloudinary py upload ho rha hai laking mujy postmon mei mongodb server error dei rha hai keh rha hai localfield can't be empty string, jb ki mein sab de rha hou aur wo upload b ho rha ha.... plesae attention and help ????

  • @sarowar-fd8ud
    @sarowar-fd8ud 9 місяців тому +5

    It's one of the best playlist. I enjoy very much. Your smiling face and talking style awesome and unique.

  • @selfreflectionmotivation8421
    @selfreflectionmotivation8421 Місяць тому

    hii sir i'm pankaj
    sir maine chai aur code par backend ka series start kiya hai sir aapne isme coverImage upload cloudinary bata rahe the nahi ho raha tha par sir mere code direct chal rahe hai sir maine (const coverImageLocalPath = req.files?.coverImage[0]?.path) phir maine codition check bhi kiya sir phir bhi koi changing nahi mila but sir maine is code check laga diya maine (const coverImage = coverImageLocalPath ? await uploadonCloudinary(coverImageLocalPath) : null) sir mai bahut khush hu logic buliding ka matlab ye nahi ki aap kitne dsa ka question solve kara rahe hai iska matlab ye hota hai ki aap us code ko kis tarah se soch rahe hai i am very proud off you sir this chanel awesome 🙏

  • @09khushbookumari4
    @09khushbookumari4 8 місяців тому +2

    Initially I found difficulty in backend but now understand flow of code after watching these videos. 🧡❤

  • @MuhammadAli-hh9td
    @MuhammadAli-hh9td 4 місяці тому +29

    sir meri pehli salary tu apko hi duga

  • @suhailchouhan6467
    @suhailchouhan6467 8 місяців тому +10

    Hello Hitesh Sir, I wanted to express my gratitude for the amazing content you've been providing. I recently began learning backend through your videos and it's been an incredible experience.
    1. Regarding the code you mentioned at 20:33, there's a handy shorthand we can utilize to fix the error using optional chaining. By using the following line of code, we can resolve the issue:
    const coverImageLocalPath = res?.files?.coverImage?.[0]?.path
    This shorthand allows us to apply optional chaining on arrays as well. Once again, thank you for your guidance!
    2. If a user is already exist then the temp file will not be removed as multer runs a middle ware and if a user already exist then we directly throw an error but not removing the files from the temp folder.

    • @sujeetrath9630
      @sujeetrath9630 4 місяці тому

      can you share solution for 2nd point how can you delete the files if user exist

    • @adamyasharma_0135
      @adamyasharma_0135 2 місяці тому

      thanks for the chaining concept ,its way more convinient

  • @nishantbhalothia
    @nishantbhalothia 9 місяців тому +2

    Hitesh bhai ye course paid course se bhi bahot jyada superior h , thanks

  • @ravishbisht502
    @ravishbisht502 9 місяців тому +7

    I'm repeating watching videos and every time i repeat i get more confidence that i can build the same without seeing the code❤. I love this profession approach of setting up files. No words to thank you sir❤

    • @chaiaurcode
      @chaiaurcode  9 місяців тому +4

      Glad you think so 😃🙏

    • @KARANKUMAR-bf9fl
      @KARANKUMAR-bf9fl 6 місяців тому

      ​@@chaiaurcodesir please help me to solve this error ,I faced this problem while setting postman, earlier all was fine 😢MongoServerError: E11000 duplicate key error collection: videotube.users index: userName_1 dup key: { userName: null }    at InsertOneOperation.execute (C:\Users\SRI RAM KUMAR\Desktop\chai-backend
      ode_modules\mongodb\lib\operations\insert.js:48:19)    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)    at async executeOperationAsync (C:\Users\SRI RAM KUMAR\Desktop\chai-backend
      ode_modules\mongodb\lib\operations\execute_operation.js:106:16)

    • @ExploreSciFi
      @ExploreSciFi Місяць тому

      @@chaiaurcode bhai log mara system mei wo mongobd atlas aur cloudinary py upload ho rha hai laking mujy postmon mei mongodb server error dei rha hai keh rha hai localfield can't be empty string, jb ki mein sab de rha hou aur wo upload b ho rha ha.... plesae attention and help ????

  • @nileshv123
    @nileshv123 9 місяців тому +3

    Hello Hitesh, you are doing a very great job. Keep it up..Always wanted to see a production grade professional code....You are making that happen....

  • @user-ly9qv8oe9o
    @user-ly9qv8oe9o 6 місяців тому +2

    Ram Ram Sir G
    pata hi nhi tha ki postman ka use is tarah bhi kiya ja sakta hain
    lots and lots of thanks

  • @yesstube624
    @yesstube624 11 днів тому

    Love from pakistan. best tutor in the world of development

  • @ravishbisht502
    @ravishbisht502 9 місяців тому +3

    Its amazing series. Here i'm learning how professionally code works❤

  • @aadilkhannew
    @aadilkhannew 9 місяців тому +40

    Ab to mai jab bhi youtube kholta hun to sabse pahle chai aur code ko check karta hun ki koi naya video aaya hai ki nahi , kabhi kabhi youtube notify nahi kar pata hai ya fir notification par dhyan nahi jata hai in cases.

    • @ExploreSciFi
      @ExploreSciFi Місяць тому

      bhai log mara system mei wo mongobd atlas aur cloudinary py upload ho rha hai laking mujy postmon mei mongodb server error dei rha hai keh rha hai localfield can't be empty string, jb ki mein sab de rha hou aur wo upload b ho rha ha.... plesae attention and help ????

  • @shubhamarya5432
    @shubhamarya5432 3 місяці тому

    i already debug my code every times before your debuging...and also fixed bug that time....because of you sir.....thankyou so much sirr....

  • @ugyenofficial
    @ugyenofficial 9 місяців тому +2

    watching at 3 am in the morning..writing code with chai is just a different feeling..thank yuou sir ji

  • @CodeDaily365Days
    @CodeDaily365Days Місяць тому +3

    sir is await ko na lagane ki wajah se mujhe 1 hour error ke saath await kardiya 😥😄😄

  • @jenilmangukiya525
    @jenilmangukiya525 9 місяців тому +3

    Great Video ❤
    I have two Question
    1 ) why are we passing two different status "201" in status Code and "200" in response body
    return res.status(201).json(
    new ApiResponse(200, createdUser, "User registered Successfully")
    )
    2) Why are we throwing error in response instead of error can we pass an response with error message?
    or we are going to build this in future?

    • @tipssedlife
      @tipssedlife 8 місяців тому +3

      1) both 200 and 201 indicates successfull responses
      Generally 200 ( OK ) status code is used for successful resquest.
      201 ( created ) status code is used when the request is fulfilled and result in the creation of new response.
      These code are industry standards , but you can use any status code between 200 and 299.
      Sir, explained these things in HTTP headers crash course, please refer that.
      2) Yes, you can pass an error with a response like :
      return res.status(400).json({ error : "error occurred"})

    • @meet2960
      @meet2960 7 місяців тому

      Yes, i do have same doubt with the error message that we should use the res.status() and json() with the ApiError class to send our API error's as a response. Maybe it will be very helpful in Frontend side i guess. Correct me if i am wrong. Thankyou

  • @singhamita
    @singhamita 3 місяці тому

    This is purely high quality production level code wirting testing and debugging . Thanks for uploading such great content for free!!

  • @DeepakKumar-oz5ky
    @DeepakKumar-oz5ky 5 місяців тому +2

    Thank u hitesh for providing us production level standard code or concept

  • @Error404Codes
    @Error404Codes 9 місяців тому +4

    ​If we do not provide the any field property in the request body from the client, the code will proceed without error so i think it might be great to apply as
    if ([username, fullName, email, password].some(field =>field ===undefined || field?.trim() === "")) {
    throw new ApiError(400, "All field are required !!");
    }

    • @lokehirl
      @lokehirl 8 місяців тому +1

      thankyou bro for help, this was actually an issue, but I was unable to think about its solution.

  • @user-ts1cs9yz8m
    @user-ts1cs9yz8m 7 місяців тому +4

    I encountered two unexpected errors during my project, but I managed to resolve them. Sharing this in case it helps someone else:
    1) When using the .env file for sensitive information like a secret key, I initially masked it using asterisks (***********). However, this caused an 'Invalid Signature' error. The fix was to ensure the secret key not in asterisks format.
    2) I faced issues while setting up the MONGODB_URI. Adding the query parameters ?retryWrites=true&w=majority resulted in an error, preventing the creation of my database collection. Removing these parameters resolved the issue.
    Hope this insight saves someone else valuable time and frustration! Thank you for sharing your experiences.

    • @atharvarolkar6236
      @atharvarolkar6236 4 місяці тому

      Thank you bro. I was getting the Invalid Signature error. Go to see I have set the secret same as api key.

  • @sarmadfaizan2810
    @sarmadfaizan2810 5 днів тому

    const coverImageLocalPath = req.files?.coverImage ? req.files?.coverImage[0]?.path : "" this thing work for me in empty coverImage.
    btw Thanks for this master playlist

  • @dsouzaedson
    @dsouzaedson 5 місяців тому +1

    I was so much excited to learn this lecture. I was like "First I'll learn this then I'll watch PBKS vs RCB" :)

  • @user-ve8rr6jv7j
    @user-ve8rr6jv7j 4 місяці тому +1

    First message just for Hitesh Sir Gem, 8:45 same error(fullname->fullName) was with me also, keep doing keep growing sir , ❤❤❤❤❤❤❤❤❤

  • @Aaodeenkytaraf
    @Aaodeenkytaraf 3 місяці тому

    After a long time but ALHAMDULILLAH my code is running❤

  • @Animesh.001
    @Animesh.001 8 місяців тому +1

    #chaiaurcode sir I'm following you from javascript and react courses and I've learnt a lot from you. I want to complete whole backend series with you sir🙏.. lots of respect for your quality content and teaching style ❤❤❤🙏

  • @nisargmakwana1918
    @nisargmakwana1918 9 днів тому +1

    Dark mode in mongo:
    Mongodb atlas > user dropdown menu on top right corner > user preferences > dark mode. you're welcome!

  • @aadilkhannew
    @aadilkhannew 9 місяців тому +1

    Main itna khus hun ki mai apni khusi ko kaise jaahir karoon ki *Jo chij hame paid me bhi nahi milti hai hame yaha free me mil rahi hai* thank you to much sir ji *Dear Hitesh Chaudhary SIR ( CHAI AUR CODE )* ❤❤❤❤❤❤❤❤❤❤❤❤ Ager aapko mera comment accha laga ho thodi bhi. to please next video me mera bhi zikar to banta hai

  • @adarshjhaxiif-1289
    @adarshjhaxiif-1289 9 місяців тому +1

    Thank you sir for all your efforts, I assure you if this project is entirely completed, this will be one of the most brilliant series on youtube, there is not a single creator explaining these complex concepts with such a simplicity and yeah with that cute smile 🥰 throughout the video. Thanks a lot sir.

    • @guptasagar694
      @guptasagar694 3 місяці тому

      Complete nahi hua...80% Khuud ko hi karna he

  • @allyn3015
    @allyn3015 7 місяців тому

    I have used postman earlier to very basic testing but never had confidence to say Yes I know postman, but after this video I can say it very confidently. All thanks to you sir❤. Hope to meet you soon.❤

  • @kumariradhagupta1984
    @kumariradhagupta1984 7 місяців тому +1

    10:36 Spelling of fullname was wrong sir, not used double l
    22:27 Alternative way is : req.files?.coverImage?.[0].path;
    Thankyou Sir, from bottom of my heart, will always have respect for you, for giving this kind of knowledge to us.
    The student will always remember you for changing there life and making corporate life easy.

    • @user-pb7ke4hk9y
      @user-pb7ke4hk9y 7 місяців тому +1

      exactly i was just about to type this

  • @aspirant7050
    @aspirant7050 6 днів тому

    thank you sir for sharing about postman production things

  • @utkarshkrishna2792
    @utkarshkrishna2792 7 місяців тому +1

    particularly iss video me bohot zyaada mazaa aaya sir

  • @joywinbennis3567
    @joywinbennis3567 7 місяців тому +1

    #chaiaurbackend #ChaiAurBackend #backenddevelopment. I cant wait to see hithesh sirs course 🤗

  • @lalitsingh-de1md
    @lalitsingh-de1md День тому

    thanks and love you sir for your valuable content💖💖☕☕

  • @rakeshbhetariya
    @rakeshbhetariya 7 місяців тому

    Ohhh God finally after more than 4 hours I solve one error but feel too good because I solve this error
    Once again thanks for starting this amazing backend series ❤

  • @itsdivanshugarg
    @itsdivanshugarg Місяць тому

    sir I lovedd this video. it took me 3x time to complete this one. because i got so many errors of my own and their i went ahead to study about them and debugged all on my own, I also added a lot of checks on the password, email etc and taken care of some other cases like when user already exists then we need to unlink files from local in that case

  • @tiktok-pk-match
    @tiktok-pk-match 7 місяців тому

    Wonderfully registered user at the first attempt. Very excited. :D

  • @devanand4269
    @devanand4269 8 місяців тому

    Thanks sir me ek dum comment nhi kr pata kuki job bhi sath me but me full support rkh rha hu...Continue rkhe bss aap iss series ko ❤

  • @mauliingle8322
    @mauliingle8322 8 місяців тому

    sir almost i watched two to three time video again again.. and my confident build to make project without watching video.. just i follow the step.. also i am waiting for next video.

  • @developer_dhanji
    @developer_dhanji 3 місяці тому +1

    i comment on this video 4 month before , becouse hitesh sir say if this video reach out ,,....number of comment so i will post next video , so i comment on this video 4 month before but watching / start this series from start before 10 days 🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣
    {{
    ________thanks hitesh sir__________--
    }}
    why for valueble content dene ke liye .......

  • @SarveshKumar-08
    @SarveshKumar-08 9 місяців тому

    Absolutely loved the tutorial on building logic and using Postman for backend development by Chai aur Code. Thank to Hitesh sir for the insightful content!

  • @qualityfacts8644
    @qualityfacts8644 20 днів тому

    nicely covered the postman topic ..

  • @b5fw6jg7
    @b5fw6jg7 8 місяців тому

    Great video as always. Thanks a lot for this effort.
    One thing missing in this Postman Topic is how to professionally document the APIs in Postmant. It is very important for better collaboration among the Backend Team and with Frontend Developers as well.
    So, please create a video about that too.
    Thank you again!

  • @umesh9719
    @umesh9719 4 місяці тому +1

    Thank you sir ji

  • @SameerMalik-dm1sk
    @SameerMalik-dm1sk 9 місяців тому +1

    this is going to be amazing backend series. Thanks you sir

  • @user-ip4uz4jw8f
    @user-ip4uz4jw8f 5 місяців тому

    The knowledge of using Postman was fabulous

  • @kratinsoni4840
    @kratinsoni4840 6 місяців тому +2

    for all those who are getting avatar is required problem I resolved the issue by following steps
    1. check the files path
    2. do different console.logs and check where is the error
    3. check the cloudinary func and compare it with sirs
    4. you can also check your environment variables file
    mine error was in cloudinary func as i was writting v2.uploader.upload rather than i should have wrote cloudinary.uploader.upload
    thanks hope your error got resolved

    • @biketips1337
      @biketips1337 5 місяців тому

      my cloudiany return null how can fix?

    • @kratinsoni4840
      @kratinsoni4840 5 місяців тому

      @@biketips1337 might be the local path is wrong

    • @shobitkhatri9242
      @shobitkhatri9242 5 місяців тому

      @@biketips1337 same here bro how can fix?

    • @ultimateintimater
      @ultimateintimater 2 місяці тому

      could you share your code snippet

    • @Vara_Kare
      @Vara_Kare Місяць тому

      @@ultimateintimater brother have you fixed the issue?"share snippet"

  • @tipssedlife
    @tipssedlife 8 місяців тому +1

    very well explained sir,
    eagerly waiting for the next video 🔥

  • @AbheyKhurana-tc6be
    @AbheyKhurana-tc6be 3 місяці тому

    BEST TEACHER EVER

  • @subhendudey1786
    @subhendudey1786 9 місяців тому +1

    Daily consistent 1 video is a good schedule

  • @nazmus-dev
    @nazmus-dev 4 місяці тому

    20:08 This can also be done with optional chaining. Often, we stuck in such small mistakes which are really hard to debug, sir. Maybe you didn't notice that you didn't chain when accessing the entry of coverImage array. This can be fixed easily with req.files?.coverImage?.[0]?.path; if the array has entries, then access it.

  • @PavinSBangera
    @PavinSBangera 3 місяці тому

    sir dark mode is there in mongodb.
    The way you explain is the best i have ever seen

  • @_Hero_24
    @_Hero_24 Місяць тому

    thank you sir for your quality contribution !

  • @sarkar4670
    @sarkar4670 9 місяців тому

    Thanks ,finally found my bugs and fixed it also thanks you again very worthful content.

  • @maninderkumarjassal6196
    @maninderkumarjassal6196 7 місяців тому

    Hello, Sir, there are several videos on backend on this plateform, but your videos stands out as the best. Most of the videos on youtube teach and show certain concepts of backend , but non have been avaible to link those concept with overall logic building for the backend. You hvave been doing a remarkable work sir, thanks a lot

  • @Dev-Phantom
    @Dev-Phantom 4 місяці тому

    so interesting and helpful lecture. Thanks sir. God Bless you.

  • @manassingh9161
    @manassingh9161 6 місяців тому

    Love the depth of this full free backend course

  • @0xAbhii
    @0xAbhii 4 місяці тому

    when he says "uski fir kabhi charcha krenge" i actually think he'll upload a video on that topic

  • @shaheen1636
    @shaheen1636 6 місяців тому

    feeling awesome after getting this amazing course. Thank You sir ❤

  • @SanjayGupta-ze1uf
    @SanjayGupta-ze1uf 9 місяців тому

    Sir, your content is truly remarkable. I am grateful for your expertise and guidance, sir.

  • @explorewithsatish1208
    @explorewithsatish1208 9 місяців тому

    Hitesh Sir You are doing great job as start new channel with this and in specially Hindi and open source

  • @_AshishMalaviya
    @_AshishMalaviya 9 місяців тому +1

    Great Backend series Sir Thank you🙏

  • @selfstudytothepoint6705
    @selfstudytothepoint6705 3 місяці тому

    Sir. .. you r the best.. you make me speechless .. thank you so much..

  • @himanshu_baghel_07
    @himanshu_baghel_07 27 днів тому

    Thanks you sir for this amazing video

  • @Tech-kx4yc
    @Tech-kx4yc Місяць тому

    Thank you Sir for this series

  • @ajspot5429
    @ajspot5429 7 місяців тому

    fulName ki spell mistake thi sir when you rewrite you add that L -> fullName great sir learn a lot thanks

  • @muhammadammaratique3748
    @muhammadammaratique3748 15 днів тому

    At 19:00, by adding `?.` one more time after coverImage we can simply check that coverImage is undefined or not an array.This will prevent our code from crashing. i.e
    const coverImageLocalPath = req.files?.coverImage?.[0]?.path;
    same goes for avatarLocalPath :)

  • @danish7335
    @danish7335 6 місяців тому +1

    Correct me If I am wrong
    But in 20:37 instead of if-else checking i just change the code like this const coverImageLocalPath = req.files?.coverImage?.[0]?.path; and it was still work either if we send data or not. Thanks in advance

  • @code-e-jahan
    @code-e-jahan Місяць тому

    great video sirji as always

  • @learnwithmeranga4610
    @learnwithmeranga4610 5 місяців тому

    Time Stamp : 13:50 , Hi Hitesh, for dark mode in MongoDB go to In your profile -> ATLAS -> User Preferences -> your can change according to your preference -> Light mode -> DarkMode -> Auto with OS (according to system preferences).

  • @AnkitKumar-ph6if
    @AnkitKumar-ph6if 6 місяців тому +1

    The same check must be applied for the avatar also as if it is not passed, the same error comes rather than the later one(avatar is required)

  • @ibntofajjal
    @ibntofajjal 8 місяців тому

    Sir ye series Stop Mat karna. Love From 🇧🇩

  • @tuhinjamal6221
    @tuhinjamal6221 4 місяці тому +1

    Hello, sir I think there is a bug in utils/ cloudinary need to import .env to provide an API key and another credential to cloudinary configuration this suffered a lot since morning but I have enjoyed a lot to fix this bug. even this could not avoid to imporation "dev": "nodemon -r dotenv/config --experimental-json-modules src/index.js". thank you. Best of luck sir .

  • @yashkamdar4912
    @yashkamdar4912 Місяць тому

    It takes me 3 hour to solve error one error solve another error comes but at last it run properly which feel great

  • @tanishkagupta3479
    @tanishkagupta3479 4 місяці тому

    I gave 3-4 hours only in debugging sir. I was feeling irritated a lot. But thanks a lot for the video please do make such videos

  • @saksham_1612
    @saksham_1612 8 місяців тому

    Amazing video but may be its bit overwhelming for beginners but still you did an incredible job

  • @aryankaushik9206
    @aryankaushik9206 9 місяців тому

    Loving the series sir
    Now learning react seeing this loved it sir please keep it up
    Also interested like this deep content

  • @aniksaha8108
    @aniksaha8108 5 місяців тому

    Toooo much knowledge, Love you Sir

  • @BurhanUddin-r4g
    @BurhanUddin-r4g Місяць тому

    nice video thank you so much Sir 😍😍❤❤

  • @Omarfaruk-wq5hl
    @Omarfaruk-wq5hl 4 місяці тому

    Thank you sir for providing us production level standard code

  • @user-tn8lk7qm3g
    @user-tn8lk7qm3g 7 днів тому

    22:00 pe if else ki jagah ham aise bhi chek kar sakte the hai na
    const coverImageLocalPath = req.files?.coverImage && req.files?.coverImage[0]?.path;
    if req.files hai to usme coverimage dekho or agr vo bhi mil jaye to yske 0th index se path le lo

  • @Dev-Phantom
    @Dev-Phantom 4 місяці тому +1

    25:22 - Important to know postman part starts here. production level

  • @Nitesh_Saini_
    @Nitesh_Saini_ 9 місяців тому +2

    Sir backend series me 😉 aanand aaya gya and ab to doubts 🧐 bhi nhi mil rahe😅

    • @chaiaurcode
      @chaiaurcode  9 місяців тому +7

      Abhi to full debugging b krenge saath me

    • @Not_Casual_Not_Anymore
      @Not_Casual_Not_Anymore 9 місяців тому

      Saras
      @@chaiaurcode

    • @vikas8049
      @vikas8049 9 місяців тому +1

      ​@@chaiaurcodesir series dec tak complete ho jayegi n ?
      BTW it's best series on yt

  • @saketkumar5227
    @saketkumar5227 8 місяців тому

    this content is great , loved while reading so many new concepts

  • @jashabantadas9783
    @jashabantadas9783 8 місяців тому

    I enjoyed it a lot. As always thank you so much.

  • @harshbhalani8566
    @harshbhalani8566 Місяць тому

    if you have any query so pless tell me i answer you so be carfull an tack care byyeee

  • @MuhammadYasir-cl4jp
    @MuhammadYasir-cl4jp 9 місяців тому

    Thank you so much sir for bringing such a high quality content for us🎉🎉❤❤

  • @supremeleader5516
    @supremeleader5516 Місяць тому +1

    amazing

  • @Khedhar108
    @Khedhar108 9 місяців тому

    _id : BSON data
    use form data option in postman while posting files
    raw and json format is choosed only for text :: "04:25"
    remove file synchornously when uploaded successfully and in case of error : "14:18" fs.unlinkSync(localfilepath)
    req.files "16:42"
    postman collection : "25:30"
    postman environment : "28:10"

  • @aneerzaman5366
    @aneerzaman5366 Місяць тому +1

    Please launch chai aur frontend series

  • @user-pt1tl3ev7i
    @user-pt1tl3ev7i 8 місяців тому

    once again thank you so much sir for wonderful knowledge share. 👌👨‍💻