🔴 #19: Create Simple API In Node JS in Hindi in 2020

Поділитися
Вставка
  • Опубліковано 31 жов 2024

КОМЕНТАРІ • 229

  • @ThapaTechnical
    @ThapaTechnical  4 роки тому +21

    Good Morning Guys :) Finally, aj simple API in NodeJS Awesome :) Plz LIKE and Share the videos ok :) N do Follow me 🔴 Instagram Link: instagram.com/vinodthapa55
    🔴 NodeJS Tutorial in Hindi 2020: ua-cam.com/play/PLwGdqUZWnOp00IbeN0OtL9dmnasipZ9x8.html

    • @rahulsunar9077
      @rahulsunar9077 4 роки тому

      Your channel deserves more subscribers Thapa Ji

    • @digitaltanmay5399
      @digitaltanmay5399 4 роки тому

      sir ek chota sa app banane ka video daliye....app hoga billing generation

    • @sandeepdeshmukh8066
      @sandeepdeshmukh8066 3 роки тому +1

      Node js series 19 video me
      Err invalid http tokan ye
      Err aara hai

    • @devilx5041
      @devilx5041 2 роки тому

      Sir jab ham bahar se api lete hai to vo hamare api ke id ke according kese api send krte hai?

  • @merajulislam5924
    @merajulislam5924 Рік тому +1

    Ek video se hi 95% Samaj Gaya. Thank you bro👍👍👍

  • @momentsoflife318
    @momentsoflife318 2 роки тому +14

    I'm so grateful to have discovered your channel. You're a great teacher. Thank you Sir for all the efforts you put in making these videos so informative.

    • @Whatever-jm2ul
      @Whatever-jm2ul 2 роки тому +1

      yeah he is really a good teacher
      Boom guys
      how much nodejs you have completed?

  • @anshikatyagi4624
    @anshikatyagi4624 3 роки тому +1

    Best videos on UA-cam.
    If anyone wants to become a web developer.
    Easy and knowledgeable videos.

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

    thanku for being consistant throughout. waiting for your latest javascript course

  • @sachingoel9866
    @sachingoel9866 2 роки тому +1

    ek suggestion hai bro pls agar tum naam le kar batao to jyada easy hoga understand mae.
    at 6.13 appne bola user jab bhi isko call kare
    isko kisko ye samjahne mae tim lag jata hai.
    other sites jaise udemy etc. paar wo mouse se highlight karke naam bhi lete hai file ka ya kisi bhi chiz ka .
    This is just suggestion I think your teaching pattern can improve.
    Brother you are going to great and one video all understanding.
    Thank you for all videos.

  • @TakHandler
    @TakHandler 4 роки тому +8

    Waiting bro. I'm also a small UA-camr. I know how much hard work u r doing

    • @ThapaTechnical
      @ThapaTechnical  4 роки тому +12

      No one is small Brother, me bhi small hu apne app ko compare kru tho.. jinke 1million subs hai

    • @TakHandler
      @TakHandler 4 роки тому

      @@ThapaTechnical yes that's true . luv that u atleast took a moment to reply m. Thx brother. loved ur videos. thx for everthing

    • @sayedshah1600
      @sayedshah1600 3 роки тому

      @@ThapaTechnical sir.. we are waiting for MERN series, so that we learn how to combine all these technologies.

    • @ankitwatts1918
      @ankitwatts1918 3 роки тому

      small keh ke insult na karo bhai

  • @hanshal1602
    @hanshal1602 4 роки тому +4

    3 2 1 BOOM
    this video is awesome.

  • @devshaky158
    @devshaky158 Рік тому +2

    Brother your videos have really quality content.
    it is really helpful.
    Thank you
    😊😊😊

  • @pallavipriya9677
    @pallavipriya9677 3 роки тому +9

    Such a great teacher you are 💘💖

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

      Hahahah....really....i think there are lot of great teacher's are available than him.

  • @Spartan-v1i
    @Spartan-v1i 5 місяців тому

    Sir make a playlist for backend (beginner to advanced)
    Also make full stack web developer (beginner to advanced) playlist

  • @piyushpathak7311
    @piyushpathak7311 4 роки тому +35

    Sir plz start MERN series with real world projects PLZZ Sir..

    • @baksh9595
      @baksh9595 4 роки тому +8

      yes, I also want that sir start MERN series

    • @CodeWithSubhajit
      @CodeWithSubhajit 2 роки тому +2

      One Request 🙏
      Please create E-Commerce website using MERN Stack.
      Love from Kolkata 🥰

  • @rajat-s-kale1771
    @rajat-s-kale1771 Рік тому

    your teaching is awesome

  • @writwikray1239
    @writwikray1239 Рік тому

    great video..one comment.. 13:54 agar second data dejkhna hoga array mein to index 1 hona chahiye that..koi ni XD...ur videos are very easy to follow and have helped us a lot!

  • @shivangshukla3764
    @shivangshukla3764 Рік тому +5

    ye api wala data hame kaha se milega

  • @learn_Japanese_with_sam
    @learn_Japanese_with_sam 3 роки тому

    Beta moj kardi aapne

  • @neogcode
    @neogcode Рік тому

    nice thapa bhai

  • @guddukumar3436
    @guddukumar3436 4 роки тому +2

    Congratulations for 2 lakh subscribers sir🎉🎉👍👍

  • @khatariinsaan5284
    @khatariinsaan5284 2 роки тому +5

    after *JSON.parse(data)* the page is failed to load,
    But it's printing successfully in console
    In your case it's working Maybe there are some updates in node js , Let's move further
    *ThIs is the error*
    node:_http_outgoing:742
    throw new ERR_INVALID_ARG_TYPE(
    ^
    TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Array
    at new NodeError (node:internal/errors:371:5)
    at write_ (node:_http_outgoing:742:11)
    at ServerResponse.end (node:_http_outgoing:855:5)
    at Server. (E:\Programming\Node js\httpserver_8\index.js:19:13)
    at Server.emit (node:events:390:28)
    at parserOnIncoming (node:_http_server:951:12)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17) {
    code: 'ERR_INVALID_ARG_TYPE'
    }

    • @suparnaadhikari8782
      @suparnaadhikari8782 Рік тому +1

      do this
      const objData = JSON.parse(data)
      res.end(objData[0].price.toString()); //assuming you want to display price of index 1

    • @PriyanshuFarkare
      @PriyanshuFarkare Рік тому

      @@suparnaadhikari8782 helpful

  • @adityabasumatary1446
    @adityabasumatary1446 2 роки тому +1

    Thank you so much sir. I am able to learn alot from this channel. Keep up the good work.

  • @pinkapatel1334
    @pinkapatel1334 Рік тому

    your explanation is awesome easy to understandable🙃

  • @visitor_t-w3p
    @visitor_t-w3p 5 місяців тому

    loved it fully

  • @karthikdevasani2795
    @karthikdevasani2795 2 роки тому

    Thankyou so much Sir for this wonderful video. It really helped me to complete my project

  • @learnwithahsan6017
    @learnwithahsan6017 Рік тому

    Awesome Video man

  • @sjjayaswal7621
    @sjjayaswal7621 Рік тому

    Thanks for for information sir

  • @codewithravi8549
    @codewithravi8549 Рік тому

    thank you very much.

  • @musicalkhushal6220
    @musicalkhushal6220 Рік тому

    Superb...................

  • @datastructure_solved5839
    @datastructure_solved5839 3 роки тому

    if my life api is ever uploaded , you ll find your name is big thanks varibale

  • @hanshal1602
    @hanshal1602 4 роки тому +4

    18:12 roz like kartahu.

  • @AdityaSonkar-l2o
    @AdityaSonkar-l2o 10 місяців тому

    Hello Bro, plz provide row code in description, it is help me a lots

  • @easywebsolution7044
    @easywebsolution7044 2 роки тому

    Thank U Brother Nice video

  • @sanjusaju4049
    @sanjusaju4049 Рік тому

    Man you are great !! But i feel like you are missing out many basic Subtopics that are very much important.
    Anyways you do BEST compared to others

  • @tipuhussan4951
    @tipuhussan4951 4 роки тому +2

    Bhai online api kaise fetch kaise karenge node me plz reply?

  • @CodeWithSubhajit
    @CodeWithSubhajit 2 роки тому

    One Request 🙏
    Please create E-Commerce website using MERN Stack.
    Love from Kolkata 🥰

  • @SushilKumar-zr9nz
    @SushilKumar-zr9nz 3 роки тому

    This tutorial is very helpful

  • @unemployedcse3514
    @unemployedcse3514 4 роки тому +1

    Waiting for project😍

  • @hritikrohilla7325
    @hritikrohilla7325 3 роки тому

    Mja agya bro ❤️

  • @harshupadhyay6130
    @harshupadhyay6130 4 роки тому +4

    Video se pehle hi nice video comment karane aaya hu😂

  • @bismillahjan7159
    @bismillahjan7159 Рік тому +1

    Awsome tutorial! Could you please show us the POST request as well? I mean how to add data to the file using the API?

  • @Shalinity
    @Shalinity 2 роки тому +3

    To all the people who are having problem to show data In console or webpage , just replace the path as
    C:/user/admin/node(main file)/userApi/user.json
    Try this format , Happy coding :)

  • @04.nehalsingh12
    @04.nehalsingh12 2 роки тому

    awesome tutorial sir

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

    Thanks

  • @jdabbasi990
    @jdabbasi990 4 роки тому +1

    Bro please start mern series .

  • @sangeetakumari1468
    @sangeetakumari1468 3 роки тому

    THE BIGGEST PROBLEM COMES IS URL AND ALL YOU TYPE GET HIDDEN OR OVERLAPPED BY THE TITLE OF THE VIDEO,VERY PROBLEMATIC,u ARE SO GOOD AT programming ,do sth about it

  • @sagarchandradas6326
    @sagarchandradas6326 4 роки тому +9

    API LINK : jsonplaceholder.typicode.com/users

  • @ankitbishnoi4067
    @ankitbishnoi4067 3 роки тому

    Great Work!!!!

  • @kiranpawar2463
    @kiranpawar2463 4 роки тому

    Very very helpful video🎥

  • @pritamchakraborty4407
    @pritamchakraborty4407 4 роки тому

    You are great sir

  • @manishbisht8950
    @manishbisht8950 4 роки тому

    Thapa Bhai aap node js ko kitne part me complete kroge 1 rough Idea hi De do . Fir me apni planning us hisab se karunga

  • @chaitrakc2457
    @chaitrakc2457 2 роки тому +3

    can anybody tell me, from where did he copy paste the data into userapi.json file??

  • @roshanlashkari6082
    @roshanlashkari6082 4 роки тому +3

    Hello sir, please start Express and Mogo DB with React frontend to made a dynamic web application.

  • @becool007
    @becool007 2 роки тому

    Bhai pls also focus on how to write mvc architecture codes

  • @hanshal1602
    @hanshal1602 4 роки тому

    this video is helpful

  • @saifsaiyed5013
    @saifsaiyed5013 2 роки тому

    Awesome

  • @stromed34
    @stromed34 3 роки тому

    Thanks!!!

  • @rajuraj1257
    @rajuraj1257 4 роки тому

    awesome video. Thanks

  • @surajbhojane567
    @surajbhojane567 4 роки тому +4

    Vinod bro it's very useful video but i getting one error ...that is when i run index.js file then we will get json files data into terminal but i didn't get it...it's showing error that is "Undifined".

  • @Anonymous-gj4km
    @Anonymous-gj4km 3 роки тому

    Sir app reply Kyu nahi dete comment ka ?? Kabhi kabhi important hota hai. Please important comments ko reply Kar Diya karo

  • @mohammadyaseen5339
    @mohammadyaseen5339 3 роки тому

    sir ye json mai api kese bnaayi hai ye bhi node ke playlist mai shamil krna chahiye tha.... Ham practice k liye ye data kese provide kre ge

  • @keshri_aman
    @keshri_aman 2 роки тому

    great bro! Are API and Rest API same?

  • @musharratjahabaig1622
    @musharratjahabaig1622 2 роки тому

    sir, this API is working all the time or when we start the code then only

  • @imperialemperor3903
    @imperialemperor3903 Рік тому

    Thapa bhai jab me npm install karta hoo toh proxy behind error detect ho raha he windows 10 me...toh kese karu install?

  • @Mr_Gaurav
    @Mr_Gaurav 4 роки тому

    Bhai pls android studio pr bhi videos banao...

  • @amarbera8661
    @amarbera8661 4 роки тому

    Thapa sir, yeh video bohot hi awesome tha but ek doubt yeh hai ki main JSON se saare data access kar pa raha hu but address access nhi ho raha hai
    please help me...

  • @deepikakapoor9607
    @deepikakapoor9607 4 роки тому +1

    You are awesome ❤️

  • @ajayverma8946
    @ajayverma8946 Рік тому

    Sir ye userapi ka data kha se pasta kiye h hm kha se pasta kre

  • @iamsaqeebpathan
    @iamsaqeebpathan 3 роки тому +1

    UserData folder kaise aaya or kab ye point thora problem creat kar raha h sir

  • @akashtutorial5091
    @akashtutorial5091 4 роки тому +2

    Sir at 12:10 you wrote URL of the JSON placeholder website

  • @kabhi1
    @kabhi1 Рік тому +2

    else if (req.url === "/Userapi"){
    res.writeHead(200, {"Content-type" : "application/json"});
    res.write(JSON.stringify(objData))
    res.end();
    }
    res.write() accepts data type string or buffer.
    & JSON.stringify converts the object to a string

  • @tejasjhamnani7724
    @tejasjhamnani7724 4 роки тому

    Bhai react ko node se kaise connect kiya jai iske upar ek video banaye na please 🙏

  • @malikhan0123
    @malikhan0123 4 роки тому

    Can webscrape and use the data to create api...and does it require every time computer on to keep server alive

  • @hemlaldulal9415
    @hemlaldulal9415 2 роки тому +1

    thapa bro i was try multiple time but showing undefined multiple times

    • @TechnophileLad
      @TechnophileLad Рік тому +1

      @Naveen Kumar can u send the full code? i am comfused a little bit

    • @techhelper9054
      @techhelper9054 Рік тому

      Solve hua kya bhai

  • @alimemon6110
    @alimemon6110 4 роки тому

    Maza a gya lush

  • @GauravKumar-dw2ml
    @GauravKumar-dw2ml 3 роки тому +1

    #doubt
    Last me agar object me parse krne ke baad res.end(object) ya res.end(object[0]) kr rhe h to data show kyu nhi ho rha jbki
    res.end(object[0]. something) krne pr ho rha h ?? ????

    • @pankajsharma-rf1ov
      @pankajsharma-rf1ov 3 роки тому

      hey bro can u help me like when I try to do parse and then I tried to access perticular value of the key then I am not getting anything and I don't know why 😥

    • @GauravKumar-dw2ml
      @GauravKumar-dw2ml 3 роки тому

      @@pankajsharma-rf1ov bro this was 5 months back I don't know the context now 😅 but you can message me on insta may be I can help @gaurav_1k3

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

    i was not able to directly display parsed json data object on localhost.
    Try this:
    else if (req.url == "/users") {
    fs.readFile(
    "path",
    "utf-8",
    (err, data) => {
    const jsonData = JSON.parse(data);
    res.writeHead(200, { 'Content-Type': 'application/json' });
    res.end(JSON.stringify(jsonData[0].address, null, 2));
    }
    )
    }

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

      Do this your issue will be resolved fs.readFile('./userapi.json',(err,data)=>{
      const objData = JSON.parse(data.toString());
      res.end(JSON.stringify(objData));
      }

  • @amanjain904
    @amanjain904 3 роки тому

    What if i use image src inside data and deploy it will it fetch image to another devices or not?

  • @arshadjuj
    @arshadjuj 4 роки тому

    Great

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

    🎉❤

  • @anshuvishwakarma6020
    @anshuvishwakarma6020 3 роки тому

    Suppose ham kisi aur server se nodejs ke api pe 2 ya 3 parameter send krenge aur jaise hi node js me wo data aaye to koi action perform hona chahiye to kaise kren.

  • @navnathsawant3092
    @navnathsawant3092 3 роки тому +1

    Hello Vinod, Is it possible to share code / raw data files like json file used

  • @srutik8388
    @srutik8388 2 роки тому +1

    How did u get this api data

  • @ankitarajpoot1589
    @ankitarajpoot1589 Рік тому

    In my case it's show undefined in terminal please help me what to do

  • @rahulsunar9077
    @rahulsunar9077 4 роки тому

    Boom and good morning

  • @RITIKSINGH-re5ne
    @RITIKSINGH-re5ne Рік тому

    json file kaha se milegi ??

  • @mixvlog10.0
    @mixvlog10.0 Рік тому

    If else url is not working in my PC please give me solution

  • @Kumar-xr6du
    @Kumar-xr6du 3 роки тому

    when to call the API the path you have given i have a doubt on this part so can you pls tell me what was it ?

  • @anshupatel8087
    @anshupatel8087 4 роки тому

    Sir, please zoom in when you type the URL.. Its too small to see.

  • @electionofficemalpura8672
    @electionofficemalpura8672 4 роки тому +1

    how can make API to use MySQL data base for my react js project, Is there any video on this topic plz suggest me. and please make a simple mini project video with MySQL in react js. Thanks

  • @pankajjoshi8292
    @pankajjoshi8292 3 роки тому

    Pls tell advantage of jason over Api

  • @asnpatil
    @asnpatil 4 роки тому

    Nice

  • @abhinav7480
    @abhinav7480 Рік тому

    json.parse method not work porperly please help me with this

  • @akshaykumareklare4661
    @akshaykumareklare4661 3 роки тому

    json file kaha se milega jo iss video me use hua h?

  • @kalimac2602
    @kalimac2602 Рік тому

    address to thik h
    but paddress nhi aya smj. 😀😀😀

  • @dipsundarjana2905
    @dipsundarjana2905 2 роки тому

    Hlw sir can I use put, post, delete method using nodejs and json file

    • @dipsundarjana2905
      @dipsundarjana2905 2 роки тому +1

      I want json file as a database and create api using nodejs and do all method like post , push, delete, get

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

    Where we get a api file Bro

  • @shashiross6539
    @shashiross6539 3 роки тому

    Plzzz JSON file bhi dete to live practice bhi kr paate 🙏

  • @anmolrathi4054
    @anmolrathi4054 4 роки тому

    bhai agar mern website localhost sa hata kaa domain ka use kara to website server par 403 error show ho raha haa .what can i do

  • @muhammadjahanzaib8258
    @muhammadjahanzaib8258 3 роки тому +1

    the data is showing in console but not in the browser.the error is TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer. Received an instance of Array

    • @veenorai6062
      @veenorai6062 Рік тому

      @Naveen Kumar but he data is not shown in browser .it giving null on console objData.status

    • @anubhavyadav8153
      @anubhavyadav8153 Рік тому

      The error you are encountering is due to passing an object (objData) to the res.end() function instead of a string or a buffer. The res.end() function expects a string or a buffer as its argument, but you are passing an object (objData) directly.
      To fix this issue, you need to convert the objData object to a JSON string using JSON.stringify()

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

    how to get whole array of object no a single property of object

  • @maheshmaniya7811
    @maheshmaniya7811 3 роки тому +1

    TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer. Received an instance of Object...
    i am getting this type of error after implementing above video.
    so, please give me reply how to solve this error ?