🔴 #19: Create Simple API In Node JS in Hindi in 2020
HTML-код
- Опубликовано: 22 авг 2024
- Welcome, how to create a simple API(application programming interface) in node js in Hindi.
🔴 Instagram Link: / vinodthapa55
🔴 NodeJS Tutorial in Hindi 2020: • NodeJS Tutorial in Hin...
************ Must Watch Videos For Web Development ************
➡️ Hooks in React JS in Hindi | useState in Hook in React JS: • #30: Hooks in React J...
➡️ Array Destructuring in ES6 in JavaScript in Hindi 2020: • ES6 Tutorial #5: Array...
➡️ Object Destructuring in ES6 in JavaScript in Hindi: • ES6 Tutorial #7: Objec...
➡️ React DevTools & Source Code Link: www.thapatechn...
➡️ ReactJS Tutorial in Hindi 2020 Playlist Link: • React JS Tutorial in H...
➡️ ReactJS JavaScript Array Map Method in Hindi with Example: • ReactJS JavaScript Arr...
➡️ Fat Arrow Function in JavaScript in Hindi 2020: • ES6 Tutorial #8: Fat A...
➡️ #23: Array in React JS in Hindi | React JS Project Netflix App #2 in Hindi in 2020
➡️ Array in JavaScript in Hindi: • JavaScript Tutorial in...
➡️ #22: React JS Project Netflix App Part #1 in Hindi in 2020: • #22: Props in React Js...
➡️ Install VS Code for ReactJS LINK: www.thapatechn...
➡️ Check Complete Reactjs in One video here 👇 • ReactJS For Beginners ...
➡️ HTML in One Video: • Learn HTML in One Vide...
➡️ CSS in One video: • Learn Complete CSS In ...
➡️ CSS FlexBox in 30 Minutes: • CSS FlexBox in 30 Minu...
➡️ JavaScript in One video: • JavaScript in One Vide...
➡️ ECMAScript 6 in One Video: • ES5 & ES6 | ECMAScript...
➡️ HTML5 in one video: • HTML5 Tutorial in One ...
➡️ CSS3 in one video: • Learn Complete CSS3 In...
➡️ Bootstrap4 in One video: • Bootstrap 4 in One Vid...
➡️ Jquery in One video: • jQuery in One Video in...
➡️ JSON in one video: • JSON in One Video in H...
➡️ ReactJS in one video: • ReactJS For Beginners ...
➡️ PHP in One Video: • PHP TUTORIAL IN ONE VI...
➡️ NodeJS in one video: / ipnwakoibt
➡️ MySQL in one video: • Complete SQL & MySQL i...
********** CLICK HERE TO WATCH ************
➡️ Fetch API in JavaScript: • Fetch API in JavaScrip...
➡️ AJAX tutorial for beginners in Hindi: • AJAX tutorial for begi...
➡️ Template literals (Template strings) in ES6 in JavaScript in Hindi: • ES6 Tutorial #3: Templ...
➡️ Async Await in JavaScript in Hindi: • Async Await in JavaScr...
➡️ Promises in JavaScript in Hindi: • Master The Promises in...
➡️ Callback Hell in JavaScript: • Callback Hell in JavaS...
➡️ Advanced JavaScript in Hindi Playlist: • Advanced JavaScript Tu...
➡️ ECMAScript Tutorial in Hindi 2020: • Modern JavaScript ES6 ...
➡️ ES5 & ES6 | ECMAScript 6 in One Video in Hindi: • ES5 & ES6 | ECMAScript...
➡️ JavaScript Game Development Series in 2020: • JavaScript Game Develo...
➡️ Source Code Link: www.thapatechn...
➡️ Top 5 Programming Languages in 2020: • Top 5 Programming Lang...
➡️ Ludo Game JavaScript Link: • JavaScript Game in Hin...
➡️Plz show some love to My Siter RUclips Channel and Plz Subscribe Link: / @mayabeautyvlogs878
**************** MUST WATCH VIDEOS *****************
➡️ How to become a Full Stack Developer 2020: • How to become a Full S...
➡️ How To Become a Web Developer 2020: • How To Become a Web De...
➡️ How JavaScript Works: • How JavaScript Works i...
➡️ Follow me on Instagram: / vinodthapa55
Make Website Responsive Using Media Queries in One Video in Hindi | Web Design Tutorial in Hindi
➡️ Link: • Make Website Responsiv...
Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.
Don't Forget to Follow me on all Social Network,
Website Link: www.thapatechn...
Instagram Link: / vinodthapa55
Facebook Link: / vinodthapa55
Twitter Link: / vb55thapa
Facebook ThapaTechnical Page Link: www.facebook.c...
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: ruclips.net/p/PLwGdqUZWnOp00IbeN0OtL9dmnasipZ9x8
Your channel deserves more subscribers Thapa Ji
sir ek chota sa app banane ka video daliye....app hoga billing generation
Node js series 19 video me
Err invalid http tokan ye
Err aara hai
Sir jab ham bahar se api lete hai to vo hamare api ke id ke according kese api send krte hai?
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.
yeah he is really a good teacher
Boom guys
how much nodejs you have completed?
ye api wala data hame kaha se milega
Ek video se hi 95% Samaj Gaya. Thank you bro👍👍👍
API LINK : jsonplaceholder.typicode.com/users
Thanks
Thanks
by writing this in userapi.json undefine is comming in terminal,what i do?plz help
thanks bro............ ; )
@@shwetachaudhary8265 same here
Sir plz start MERN series with real world projects PLZZ Sir..
yes, I also want that sir start MERN series
One Request 🙏
Please create E-Commerce website using MERN Stack.
Love from Kolkata 🥰
Best videos on RUclips.
If anyone wants to become a web developer.
Easy and knowledgeable videos.
Waiting bro. I'm also a small RUclipsr. I know how much hard work u r doing
No one is small Brother, me bhi small hu apne app ko compare kru tho.. jinke 1million subs hai
@@ThapaTechnical yes that's true . luv that u atleast took a moment to reply m. Thx brother. loved ur videos. thx for everthing
@@ThapaTechnical sir.. we are waiting for MERN series, so that we learn how to combine all these technologies.
small keh ke insult na karo bhai
Such a great teacher you are 💘💖
Hahahah....really....i think there are lot of great teacher's are available than him.
3 2 1 BOOM
this video is awesome.
thanku for being consistant throughout. waiting for your latest javascript course
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'
}
do this
const objData = JSON.parse(data)
res.end(objData[0].price.toString()); //assuming you want to display price of index 1
@@suparnaadhikari8782 helpful
Brother your videos have really quality content.
it is really helpful.
Thank you
😊😊😊
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.
Thank you so much sir. I am able to learn alot from this channel. Keep up the good work.
18:12 roz like kartahu.
can anybody tell me, from where did he copy paste the data into userapi.json file??
Sir make a playlist for backend (beginner to advanced)
Also make full stack web developer (beginner to advanced) playlist
Congratulations for 2 lakh subscribers sir🎉🎉👍👍
Video se pehle hi nice video comment karane aaya hu😂
Thank you so much ☺️
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
Thankyou so much Sir for this wonderful video. It really helped me to complete my project
if my life api is ever uploaded , you ll find your name is big thanks varibale
your explanation is awesome easy to understandable🙃
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".
Same problem
Hello sir, please start Express and Mogo DB with React frontend to made a dynamic web application.
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 :)
Tqsm shalini ☺ it fixed my error
but still same error :/
your teaching is awesome
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!
Bro please start mern series .
Waiting for project😍
Bhai online api kaise fetch kaise karenge node me plz reply?
Awsome tutorial! Could you please show us the POST request as well? I mean how to add data to the file using the API?
loved it fully
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));
}
)
}
Do this your issue will be resolved fs.readFile('./userapi.json',(err,data)=>{
const objData = JSON.parse(data.toString());
res.end(JSON.stringify(objData));
}
Sir at 12:10 you wrote URL of the JSON placeholder website
thank you for this.
Hello sir, I got an error while printing the userapi.json in console. Error is showing "TypeError: Expected a string, got object"
This tutorial is very helpful
You are awesome ❤️
Thank U Brother Nice video
Thanks for for information sir
Superb...................
Awesome Video man
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
Would you mind sharing the subtopics name
Very very helpful video🎥
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
Thank U sir.. Nice video
Great Work!!!!
One Request 🙏
Please create E-Commerce website using MERN Stack.
Love from Kolkata 🥰
terminal par undifined araha hai So what to do ..
Pls reply anyone
Hua kya solve
thank you very much.
awesome video. Thanks
Beta moj kardi aapne
UserData folder kaise aaya or kab ye point thora problem creat kar raha h sir
awesome tutorial sir
Hello Bro, plz provide row code in description, it is help me a lots
You are great sir
bhai sb acha h pdhata acha ho bs adds km kiya kro apne videos ki bht time waste hota h esme
Hello Vinod, Is it possible to share code / raw data files like json file used
nice thapa bhai
In my case it's show undefined in terminal please help me what to do
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
Mja agya bro ❤️
this video is helpful
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
@Naveen Kumar but he data is not shown in browser .it giving null on console objData.status
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()
after content type to application/json when i am refreshing the page it get downloaded whatever i am calling ...pls explain anyone
At 9:57 how function called to read data
If else url is not working in my PC please give me solution
Bhai pls also focus on how to write mvc architecture codes
Can webscrape and use the data to create api...and does it require every time computer on to keep server alive
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 ?
if you have resolved the issue please help me I am also stuck with same
same error
#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 ?? ????
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 😥
@@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
How did u get this api data
sir, this API is working all the time or when we start the code then only
What if i use image src inside data and deploy it will it fetch image to another devices or not?
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.
thapa bro i was try multiple time but showing undefined multiple times
@Naveen Kumar can u send the full code? i am comfused a little bit
Solve hua kya bhai
Sir, please zoom in when you type the URL.. Its too small to see.
json.parse method not work porperly please help me with this
can u help me guy's 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 😥
Thanks!!!
Can anyone please tell me why he has written file path like that in using back tick in fs readFile and how does that statement work?
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
Sir please cover express.js
Thapa bhai jab me npm install karta hoo toh proxy behind error detect ho raha he windows 10 me...toh kese karu install?
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 ?
how to get whole array of object no a single property of object
Bhai react ko node se kaise connect kiya jai iske upar ek video banaye na please 🙏
great bro! Are API and Rest API same?
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
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
my userapi file get downloaded when i type localhost:8000/userapi and enter (please provide me the solution)
Maza a gya lush
why i am not able to print all data on web page using object?
Boom and good morning
Website me wallet option kaise de
Make video on this in php
Paytm gateway use kr sakte ho
@@webd5300 payement gateway kaise use krenge....yadi iss se related koi video hai to yaha link share kro
Waiting
Sir ye userapi ka data kha se pasta kiye h hm kha se pasta kre
Where we get a api file Bro
Awesome