Node ka real feel iss bnde me Diya h, hats off man❤
@bunnytheweebster
9 ай бұрын
thoda complex laga sab ek sath, but it was unbelievable 23 mins k video me itna sab kuch.. Vid - 21✅
@Crazy_philosopher
4 ай бұрын
Bhai kya Banda haii master haii computer field ka nodejs pe kya command hai iski , wahhhh isee to Google, microsoft aasani se job mil sakti haii ... Great bro keep going ❤💯🔥
@saptarshisinha1744
7 ай бұрын
Project completed ✅ Maja agya error handle karne mein ❤
@PrabhunarayanSingh-t7o
Ай бұрын
brother you are teach people or self study your tutorial is very fast.
@Aitool-r3q
8 ай бұрын
URL Shortner created Done✅ thanks sir jee
@kishankg7056
3 ай бұрын
have you completed url shortner ..?is shortid package was working..?
@prasadmutnale773
10 ай бұрын
i like the way you explain and also i learning how to read docs
@satyampal7235
7 ай бұрын
Bhai maza aagya. awesome approach 🥳
@shivanshusingh7660
11 ай бұрын
bhai I follow your same code and when i start npm the npm is running also but when i run send url from post man it always saying url is required please helpm me out
@SonuKumar-e4o6k
10 ай бұрын
You make really fantastic videos. I like the way of your teaching and writing the code in efficient manner. wow It's really outstanding...
@harshpandey7970
4 ай бұрын
Fantastic course. Node js ka feel aa gaya
@kishankg7056
3 ай бұрын
bhai tune, short url project banye hai..?
@codewithhindi
Жыл бұрын
Osem content Hindi language fabulous teaching method thanks sir
@piyushgargdev
Жыл бұрын
Thanks and welcome
@codewithhindi
Жыл бұрын
@@piyushgargdev hello sir Abhi Tak youtube pe mern series nahi hai good content with project aap apne chenal pe layiye hindi me
@tutedroid171
28 күн бұрын
please keep up the classes free on youtube. They are so helpful.
@BestURLShortenerBioPageQRCode
Жыл бұрын
Thank you for your great efforts! Really really awesome video.
@RohitKumar-dy2gc
7 ай бұрын
amazing and simple project for beginners like me✨✨
@saranyasingh6847
Жыл бұрын
I was getting error with both nanoid and shortid , so I used nanoid@^3.0.0
@abc-ym4zs
11 ай бұрын
I am not understanding these fucking topics 😅 what to do bro I am not liking can u suggest what u are doing now
@RohtashSingh-o8t
11 ай бұрын
Is it working ?
@bunnytheweebster
9 ай бұрын
thanks bud
@adityabisoyi1502
8 ай бұрын
ShortId and nano Id are not working for me. I used another library caller short-unique-id
@abc-ym4zs
8 ай бұрын
@@adityabisoyi1502 die with errors and dsa systemdesign and webdev
@AbhinavSingh-bp5qh
Жыл бұрын
love your playlist
@PulkitMalhotra
3 ай бұрын
Few questions: 1. 06:08 Why you used express.Router() instead of express() 2. 12:26 How does this script start working and what is nodemon 3. 11:58 What did you do here, what is this localhost port, and how are you saving the data.
@toomuchharsh
2 ай бұрын
Bro Just watch the tutorial from starting lec-1
@SNX03
2 ай бұрын
bruh you don't even know the basics, I recommend watching from the start dude.
@ashishkumar-jo7cj
Ай бұрын
Yes bro watched the node js tutorial from starting these all the basics which you are asking here
@creativitychannel39
3 ай бұрын
I like the way you explain
@69pinkman50
7 ай бұрын
Congrats For 100k MAn
@AbhiGamingYT0234
3 ай бұрын
EROER: npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. the above error is being thrown by teminal when i am trying to execute the npm start command, pls reply ASAP sir its urgent for me!
@fearlesstaurus1585
3 ай бұрын
i tried using nanoid and shortid for once post request works but when i try to make second its giving duplicate error, it's not generating unique shortID and get request for /:shortID also does not work
facing that error what should i do res.redirect( redirectURL); ^ ReferenceError: redirectURL is not defined at D:\Web devlopment\Projects\URL_SHORTNER\index.js:32:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
@mrxpandaplays2185
4 ай бұрын
same with me did u solved it ?
@RahulKumar-ed9vw
Ай бұрын
best series ever
@kaustubhjoshi9022
9 ай бұрын
if getting this error -> res.redirect(entry.redirectedURL); ^ TypeError: Cannot read properties of null (reading 'redirectedURL') at D: ode js\URL-Shortner\index.js:27:22 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Node.js v18.16.0 [nodemon] app crashed - waiting for file changes before starting... solution - res.redirect('' + entry.redirectURL);
@snehamaurya3659
8 ай бұрын
thankss can u tell me how you got this solution?
@KirtanPatel552
8 ай бұрын
Same Here If You Have Any Solution Than tell me ...
@pranjalmaurya3832
8 ай бұрын
Did u got the solution?
@mkmihirkalbende2622
6 ай бұрын
Thank You Brother!!
@devascript
2 ай бұрын
yeah i also got this error can , solution mila ki nahi bhai
@roshannayak5982
Жыл бұрын
getting error on postman get request "Cannot GET /url/8iN0AH5hG" also used yr source code but still getting issue how to fix can u help ?
@MessiLeo2312
10 ай бұрын
router.get("/analytics/:shortId",handleAnyalytics) try this path
@decodewithd2541
6 ай бұрын
same issue , have you found the solution???
@SimpleProgrammer0
8 ай бұрын
13:08 their was an error with nanoId : you can install this specific version of nanoId to remove this error : npm install nanoid@2.1.11 thanks me later😀
@xpvishal2031
Ай бұрын
❤❤❤❤
@xpvishal2031
Ай бұрын
ShortID no longer Supported
@prasiddhbarot9323
Жыл бұрын
18:02 bhai ye entry par hover karne suggestions kaise aaya? Koi extension ho to batao!!
@apoorvaraj3894
5 ай бұрын
Excellent explanation❤
@mma-dost
Жыл бұрын
great video bhaiya what will be the next video?
@piyushgargdev
Жыл бұрын
Wait till 5:00PM 💪🏻
@abhishekgaikwad3977
9 ай бұрын
when i add 1st new entry it add without error but when i add 2nd url it show error mongoServerError: E11000 duplicate key error collection: urlShortner.urls index: shortID_1 dup key: { shortID: null }
@tanishkgupta6149
9 ай бұрын
facing same problem bro is you got any solution please share kar dena
@UzairKhan-qd3xu
9 ай бұрын
it seems to be a problem where you are overwriting, are you sure you are creating new field instead of updating?
@SUBZERO-vx7xs
7 ай бұрын
same error , did you resolve it ?
@solaimfaisal
5 ай бұрын
same error did you resolve
@solaimfaisal
5 ай бұрын
@@SUBZERO-vx7xs yeah i had to drop the database
@Vivek-rn9zb
Жыл бұрын
Nice video bhaiya
@sankalpnaik877
10 ай бұрын
I am not getting the desired output for the last part ...for number of clicks....the postman is showing cannot get ......please help!!
@animeshbiswas2754
10 ай бұрын
What error are you facing?
@AdityaSingh-yz9g
9 ай бұрын
I am also facing the same
@sankalpnaik877
9 ай бұрын
@@AdityaSingh-yz9g it works fine in website
@AdityaSingh-yz9g
9 ай бұрын
not with me I am not getting the website when I get request from postman
@ChitraAtlani-n5q
4 ай бұрын
shortid has been reprecated, any other package recommended?
@digvijaysingh9028
3 ай бұрын
ssid
@lovelymusic3549
Жыл бұрын
Sir will you upload react native course please tell me?
@madmax180
8 ай бұрын
it was not working because nano id supports common js syntax only upto version 3 and we are using version 5 solution : 1) use module syntax instead 2) degrade to version 3
@heydude1551
3 ай бұрын
Now my only goal is to be perfectionist like him while my hands on keyboard. ....how much does it take to be pro in backend?
@himanshutiwari3442
4 ай бұрын
on npmjs the shortid you have used is unavailable and now I'm using short unique id but this showing error so pls resolve this and what can i do.........pls check it sir
@udy1897
4 ай бұрын
same
@RayanAhmad-m6d
11 ай бұрын
Interesting video, nice explanation Thanks
@Sandy-ip2mm
5 ай бұрын
thanks bro for the great video
@ayushshrey9916
Жыл бұрын
I am getting this error when I use generated shortid url in search bar: res.redirect(entry.redirectURL); ^ TypeError: Cannot read properties of null (reading 'redirectURL')
@aniket5657
Жыл бұрын
This might solve the issue: (entry?.redirectURl)
@niteshkushwaha9493
Жыл бұрын
Your two routes are clashing.
@cws20128
11 ай бұрын
@@niteshkushwaha9493 then how to solve this ?
@UzairKhan-qd3xu
9 ай бұрын
could be an unresolved promise, are you sure you are using async await or .then right?
@KirtanPatel552
8 ай бұрын
So For This I will Give Solution which is const entry = await Url.findOneAndUpdate({ shortId, }, { $push: { visitHistory: { timestamp: Date.now(), } } }); res.redirect(entry.redirectURL); }) Error is if you are Give if there are nothing return by entry Because Your name "shortId" is same in Your Schema "shortId " so Your Code will Succesfully Worked
@poojaganvir5631
8 ай бұрын
Thanks🧡, nice video
@HarishTripathi-h2b
8 ай бұрын
sir postman not connect error 404 but code is same please provde same code
@pangajayakrishna
Жыл бұрын
nice explanation thanks for great video!!
@SaurabhKumar-qc6og
9 ай бұрын
Bhaiya can you please make a video on tracking the IP of the client in the analytics. As I was reading about this feature, this seams to be tricky in the case of proxy or load balancers.
@Tuba_fashions
Жыл бұрын
await is not working for res.redirect can you please help
@anandshete9170
8 ай бұрын
use async function then you will be able to use await
@peatear9421
5 ай бұрын
bhaiya I'm getting Error: read ECONNRESET on postman even after using express.json() middleware , with the same error msg in the console which you got , help me fix it?
@AmitMusic-02
4 ай бұрын
has the error been resolved? i am stuck too.
@srajangarg21
3 ай бұрын
SyntaxError: Unexpected end of JSON input at JSON.parse () ye error ara hai mera
@shubhamchauhan6633
Жыл бұрын
thanks for the tutorial. I am getting an error. while using findOneAndUpdate It returns null because of which redirect is not working. I tried your code also but it is not working
@iamksb
Жыл бұрын
I am also getting the same error
@comparisondata2473
Жыл бұрын
check if u have exported and imported database properly
@nityaranjan6714
Жыл бұрын
@@comparisondata2473 yes imported correctly.
@priyajha3700
10 ай бұрын
it is the problem of res.redirect , it needs a protocol like http or https otherwise it consider the redirect as a relative path - this will throw out an error Use this instead const url=entry.redirectURL.startsWith('') || entry.redirectURL.startsWith('') ? entry.redirectURL :`${entry.redirectURL}` ; res.redirect(url)
@The_Builder_Bobs
6 ай бұрын
where did you declare urlRoute before importing
@parasagarwal5701
8 ай бұрын
may I know what extension are you using / what command are you using for organizing the code , cause when I use shift+alt+f it don't organize the way yours does.
@navneetsinha8387
8 ай бұрын
he is using Prettier extension
@parasagarwal5701
8 ай бұрын
I use that too , though It feels like his does a lot better LOL
@devilsworld7299
8 ай бұрын
thats the beauty of MacOS @@parasagarwal5701
@rajeshhalder2774
7 ай бұрын
@@parasagarwal5701 if you select the code and then formatting with prettier then it should work fine
@nikitabhardwaj1876
3 ай бұрын
everytime i run this it shows this [nodemon] app crashed - waiting for file changes before starting...
@sauravmishra2732
3 ай бұрын
i am also getting same as URL.create is not a function
@vishalshrivastava4618
3 ай бұрын
Hi Piyush, I am Vishal doing Practice with the help of this video. I got stuck whiten an error which I am pasting below. could you please help me out to fixed it. Thanks! C:\Users\Taruna\OneDrive\Desktop\SHORT-URL ode_modules\mongoose\lib\document.js:3306 this.$__.validationError = new ValidationError(this); ^ ValidationError: url validation failed: shortId: Path `shortId` is required.
@devascript
2 ай бұрын
so na tumne Schema ke under shortid ko required true kiya hoga na that's right uske wajah se kuch lag rha hai
@pranavsingh2238
Жыл бұрын
Hi there, I am a little bit confused, won't this URL shortner only work on the machine in which npm is running
@chetanram797
Жыл бұрын
Deployment ke bad sab machine pe work krega.
@AjayKumar-bj4hk
3 ай бұрын
ValidationError: url validation failed: redirecturl: Path `redirecturl` is required.
@PNikhil-w2b
7 ай бұрын
if(!body.url){ return res.json({error:"URL Needed"}) } ^ TypeError: Cannot read properties of undefined (reading 'url') Any one ??
@Sneha-d1d
6 ай бұрын
Included app.use(express.json()) middleware in the index.js?
@AjayKumar-bj4hk
3 ай бұрын
and make sure that you add on the top of url roure
@AtharvJoshi-jc7ow
4 ай бұрын
I understood the code, but I didn't understand the purpose of this app I mean why do we need short url anyways?
@devascript
2 ай бұрын
kahi kahi pe bahut badi url hoti hai that's why, and hui baat linkedin ki to linkedin pe limit hai url ki to ye waha pe bhi kaam aa sakta hai
@BhanishiSharma
Жыл бұрын
I am getting confused because mongodb is not running properly in my project
@abhinavexperimental
Ай бұрын
12:50 nanoid is throwing some error, which can be fixed by dunamically importing it - async function generateNewShortURL(req, res) { const body = req.body; if (!body.url) { return res.status(400).json({ error: "URL is required." }); } const { nanoid } = await import('nanoid'); const shortID = nanoid(8); // Generate the short ID await URL.create({ shortId: shortID, redirectURL: body.url, visitHistory: [], }); return res.json({ id: shortID }); };
@NaginSulka
3 ай бұрын
what is small letters url in schema here?
@Hrishabhhhh
5 ай бұрын
Hey can anyone help me... I'm getting a... TypeError: Cannot read properties of undefined (reading 'push')
@studyplans3783
4 ай бұрын
bro replace Router to Router();
@shaktilab
Жыл бұрын
how handlegenerateshorturl function get req and res objects?
@sudhanshugorwadkar3839
Жыл бұрын
19:40 I have generated several IDs with different URLs, but whenever I send get requests to those IDs (with the localhost URL as the prefix), I get redirected to the URL which is associated to the first entry in the database every single time. What could be the cause of this problem?
@Ankit-01-01
Жыл бұрын
const shortid = req.params.shortId; const entry = await URL.findOneAndUpdate({shortId:shortid},{ $push:{visitHistory:{timestamp:Date.now()}} }) res.redirect(entry.redirectUrl) //bro pass an object like {shortId:shortid} in findOneAndUpdate and if you want to pass only {shortId} then your shortId should have same name as in database because it means {shortId:shortId}
@SUBZERO-vx7xs
7 ай бұрын
same problem , did you find any error regarding this
@SulavGhimireeee
9 ай бұрын
Thanks bro
@Vivek-rn9zb
Жыл бұрын
Bhaiya bahut error aa raha hai kuch samajh nahi aa raha hai ki kya kare jabki code same to same likh rahe hai
@mandeepsingh2718
8 ай бұрын
Bhai Sikh rhe ho node js ? Ja chod dia .. Bcoz Maine abhi start Kia hai koi tips le lu
@geeky_world
8 ай бұрын
pls give some basic knowledge on mongodb also ...i feel its going fast in between
@awanishmishra4611
5 ай бұрын
How to deploy this on server ?
@Avaneesh..
5 ай бұрын
excellent
@shashankchaudhary3625
Жыл бұрын
i got this error ..ValidationError: url validation failed: shortID: Path `shortID` is required.
@deepeshkhatri5370
9 ай бұрын
me too ,any solutions
@aliasgeranees8893
5 ай бұрын
@@deepeshkhatri5370 Hi short id and nano id both are not working so pleaes dont use them instead use this code:- function generateRandomString(n) { const str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; let randomString = ""; for(let i = 0 ; i < n ; i++) { const random = Math.floor(Math.random()*str.length); randomString += str[random]; } return randomString; } module.exports = generateRandomString; I think you guys might have already gotten the solution since its 10 months 😅
@vageshnp6792
8 ай бұрын
I am getting error that database not connected
@decodewithd2541
6 ай бұрын
I am getting error while sending the GET request , help me
@velanthevar2459
5 ай бұрын
In the router folder post request is made so you should send the post request
@warrior_pk
Жыл бұрын
14:18 terminal clear krke prompt top pr kaise kiya ? koi shortcut key hai qa
@piyushgargdev
Жыл бұрын
CMD K for Mac and CTRL + K for windows
@motivationalshorts393
28 күн бұрын
again url post krne pr duplicate key bar bar aa rha hai anyone help?
@mandeepsingh2718
8 ай бұрын
Halat patli ho gyi Bhai yeh project banate banate ... Kahin khudse banana pad Jaye Bina dekhe fir pata nhi kya ho.... It seems quite difficult right now😮
@gamerschoice779
6 ай бұрын
Same here.. is playlist ki Kitne videos dekh lie aapne abhi tak?
@shubhamgupta-bl1tr
Жыл бұрын
Nice
@DesertCentipede
3 ай бұрын
console.log("tut was grea, but file naming confused me a lot");
@vishnugupta6284
4 ай бұрын
Great Content
@moviesasylum8531
5 ай бұрын
how to connect it to online mongoDB
@HussnainMulazam
Ай бұрын
sir ak line code ni run ho raha
@vineetkumar2899
Жыл бұрын
I love it
@bhaisaheb4686
6 ай бұрын
anyone following along, I'm getting entry as null and so redirect is not working, pls help
@bhaisaheb4686
6 ай бұрын
though every time I'm hitting get method visitHistory is updating
@lovelymusic3549
Жыл бұрын
Sir your react and next JS course is completed or not?
@piyushgargdev
Жыл бұрын
Next is completed, After Nodejs, we are going to cover React from scratch and in - depth
@shashisahani800
8 ай бұрын
I want to become a full-stack developer, and initially, I only knew React.js. Upon searching for Node.js tutorials, I came across your playlist of 48 videos. These videos are incredibly informative, and I had never learned Node.js before. After watching your tutorials, I've become a fan of your teaching style. Thank you so much for guiding us in such a great way!
@adityaS011
Жыл бұрын
Where is the second video
@nityaranjan6714
Жыл бұрын
TypeError: Cannot read properties of null (reading 'redirectURL') , Anyone please help how to resolve it.
@satyamraj2779
Жыл бұрын
Exactly, I m also getting the same error..
@cws20128
11 ай бұрын
@@satyamraj2779 Yep same error
@pragatiailani7206
11 ай бұрын
try res.redirect('' + entry.redirectURL);
@ankurshukla7889
9 ай бұрын
add while passing the URL. Hope it helps
@sushantlama2178
Жыл бұрын
bhai Im getting error while I'm using get with the shortId help please
@piyushgargdev
Жыл бұрын
Kya error aaya?
@sushantlama2178
Жыл бұрын
@@piyushgargdev Jaab mey generate short id leke get request karna chahata huu tab error atta hey paar terminal pey kuch bhi nahi error dekhata hey..sirf postman pey request error atta hey jaab mey get karna chahata huu
@roshannayak5982
Жыл бұрын
same issue how to u find ans ? @@sushantlama2178
@sankalpnaik877
10 ай бұрын
Hua kya solve?
@decodewithd2541
6 ай бұрын
@@sushantlama2178 same issue , resolve hua if yes please help me
@motivationalshorts393
28 күн бұрын
can anyone provide source code ??
@creativitychannel39
3 ай бұрын
shortid is worked
@SUHRIDBEHARIPAUL
Ай бұрын
where is the ui?
@rabinsaha3218
Ай бұрын
Source code address broken
@ramkrushnaprabhu8027
Жыл бұрын
Sir, How to collect ip address? Please reply...
@priyanshuhaldar472
6 ай бұрын
You get it in the req object itself. You can use that trick to create a rate limiter.
@dev_opsenginner4383
Жыл бұрын
make a video on mongodb module in Nodejs
@satyamjha-codeindwala6666
8 ай бұрын
Node.JS and MongoDB
@HARSHAC-c6c
Жыл бұрын
The code gives: res.redirect(entry.redirectURL); ^ TypeError: Cannot read properties of null (reading 'redirectURL') in latest mongoDB version . How do I fix this?
@pranavsingh2238
Жыл бұрын
that particular portion must be app.get('/:shortId', async (req,res) => { const shortId = req.params.shortId; const entry = await URL.findOneAndUpdate({ //this part wouldn't be present for sure shortId }, { $push: { visitHistory:{ timestamp: Date.now(),}, }, } ); res.redirect(entry.redirectURL); });
@mistake10449
Жыл бұрын
what's the solution ? @@pranavsingh2238
@nityaranjan6714
Жыл бұрын
Same error I am also getting. And with below solution its not working.
@nityaranjan6714
Жыл бұрын
@@pranavsingh2238 Sorry I could not able to understand your solution. Could you please explain what should I do?
@pragatiailani7206
11 ай бұрын
try res.redirect('' + entry.redirectURL);
@VikasSharma-kc2oc
Жыл бұрын
🔥🔥
@shashankchaudhary3625
Жыл бұрын
i was getting error url validation failed
@bineetjha2268
7 ай бұрын
same mee too getting this error
@yashigupta2212
Жыл бұрын
Code is not working
@DhirajKumar-zr1xp
Ай бұрын
if getting this error -> res.redirect(entry.redirectedURL); ^ TypeError: Cannot read properties of null (reading 'redirectedURL') at D: ode js\URL-Shortner\index.js:27:22 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Node.js v18.16.0 [nodemon] app crashed - waiting for file changes before starting. Try this SOLUTION:- res.redirect(`${entry.redirectURL}`);
@knightcore4062
Ай бұрын
exactly bhai, bug fix hua...?
@knightcore4062
Ай бұрын
Bug Fix - @abhavgoel9390 🙏🙏 let redirectUrl = entry.redirectURL; if (!redirectUrl.startsWith('') && !redirectUrl.startsWith('')) { redirectUrl = '' + redirectUrl; } console.log("Redirecting to " + redirectUrl); return res.status(302).redirect(redirectUrl);
@DhirajKumar-zr1xp
Ай бұрын
@@knightcore4062 ha
@technicalabhi7683
Жыл бұрын
Make video on get ip address
@harshitjoshi3082
Жыл бұрын
Just console.log req.ip ?
@shi-nee7966
Жыл бұрын
why did we made history as array of objects?
@hemangkoshiyar
7 ай бұрын
because he wanted to store multiple timestamps to determine the length of url hits and array is used to store multiple entries.
@amanbhatt1087
8 ай бұрын
bhai agar null wali error aa rhi hain toh upr bhai n source code diya hain usko copy marke console m entry print karana error dikh jayegiii tumkoo tumhari.. thanks me later.. bye
Пікірлер: 265