code for email validation if (!email || typeof email !== 'string' || email.trim().length === 0) { isBodyValid = false; errors['email'] = 'This should be non empty & in email format !'; } else { const regexExp = /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i; if (regexExp.test(email) === false) { isBodyValid = false; errors['email'] = 'This should be non empty & in email format !'; } }
@therightarm Жыл бұрын
great help
@bagusengarso11562 жыл бұрын
Any UI aplication example to use this API?
@shalala592 жыл бұрын
Thanks for the effort mate. Great content, keep it up!
@shalala592 жыл бұрын
Very helpful video man. Keep it up!
@rohitkanchanshaw14822 жыл бұрын
please, if you can post the sequelize version of this, would be great for us. Great explanation
@silviojava962 жыл бұрын
Great!
@roughysk98512 жыл бұрын
" exit status 1: access denied " , what should I do?
@DON301119882 жыл бұрын
what the hell is that ?? Powershell is so smal thart we are noty able to read teh actual content. Do some research on editing
@josh_9722 жыл бұрын
Amazing, thanks a lot 👌❤
@syeminpark2 жыл бұрын
bro love your content. Would really appreciate if if the video resolution was better. Its hard to read your code at 480p max
@AdeelImranr2 жыл бұрын
Will work on it
@vivekjain98713 жыл бұрын
Hi Adeel, I have some questions and relating to socket io code and would appreciate it if you could answer. 1. I am confused as to why do we even need socket io if everything is being handles by http requests ? 2. Also, I want to understand that how many instances of the "Websockets class" will be there at any given time on the backend. 3. Will the events inside the "connection method" of "Websockets class" be fired automatically as soon as the server is initialised or we'll have to manually firethose events ? 4. If the latter is the case, then when will be the best time to fire the "identity" event and the "subscribe" event. 5. And if the former is the case, then can you please explain the working of this "Websockets class" in detail ? I hope you will clear all these doubts. Thanks in Advance.
@pranjalikhandelwal1633 жыл бұрын
Thanks u so much for helping me out ..ur post and video help me a lot to make my chat app
@shabrown67583 жыл бұрын
I've tried everything but failed until I used your method. Thank you so much for this video! You saved my life!
@imtiger923 жыл бұрын
Can i ask you, what if you on the client side want to have a silent refresh tokens every tot minutes? You can continue using the rest calls or you should move to websocket?
@dankyuso15773 жыл бұрын
Thanks for such a nice explanation!
@qiratvohra44363 жыл бұрын
Hey I tried the Post part but it didn't run on Postman.. Only success and message is printed.. JSON items do not run.. can you help me
@Selven573 жыл бұрын
I'm frontend dev and I was confused about how to start with node, thanks to your videos I know what is what and how to use tools, thanks for sharing
@cpttetris56453 жыл бұрын
absolutely fantastic video, thanks bro!!
@cpttetris56453 жыл бұрын
That intro song scared the shit out of me!!
@nguyennhat95163 жыл бұрын
good job bro
@mgschak3 жыл бұрын
I can not read the text in power shell. Make ez to copy the script.
@SilvaOnTube4 жыл бұрын
Just curious. If I switch back to a Windows command prompt and run node -v, the version it reports is the original installed one, not any I installed through nvm.
@swapnildalvi8434 жыл бұрын
kzbin.info/www/bejne/fWm9Z6ybi5WsqsU here I like the expression good tutorial
@ShubhamHingne4 жыл бұрын
Installation Looks super easy after watching this video. Thanks for this.
@ashish219994 жыл бұрын
Good explanation, could be more helpful if you could have shown the scope using a diagram instead.
@AdeelImranr4 жыл бұрын
Ok next time
@moidhasanbeig74994 жыл бұрын
I just got how absurd my doubt was. But now my doubt is, whenever a client connects to our WebSocket, then as per this: "global.io.on('connection', WebSockets.connection)", the connection method gets invoked. But in the function definition, it requires an argument: "connection(client) { ... }", so during function call why aren't we passing any? I'm just a beginner to node so please bear with me. Another doubt is, in this: "subscribeOtherUser(room, otherUserId)", what is actually "otherUserId"? Please help man.
@moidhasanbeig74994 жыл бұрын
Well explained Adeel! I have one doubt though. Does this API support group chats? I got this doubt from this function: "subscribeOtherUser(room, otherUserId)". Since here the second arg is an individual user ID and not an array of multiple users who could be a part of a group conversation.
@AdeelImranr4 жыл бұрын
yes the idea is every chat is a group chat, even if it has 2 people in it. It is a group chat.
@sautante4 жыл бұрын
This is so cool, I'm already learning a lot thanks!
@doeralpha97074 жыл бұрын
Man, these aggregate operators seem very powerful. Haven't seen that so far in my humble career. Just wondering is there any similar method for that data manipulation in Typescript and for relational dbs. Thanks for sharing knowledge.
@AdeelImranr4 жыл бұрын
I am not aware of any aggregation library for JS in general, aggregations is more of database concept.
@gz98064 жыл бұрын
Hi Adeel, thanks for making and sharing this tutorial! It looks amazingly detailed. Is there any way to see what the completed application looks like to see if it meets my needs? Thank you
@AdeelImranr4 жыл бұрын
Hi the source code is given in the video description. :))
@aayushshah44184 жыл бұрын
@@AdeelImranr a small clip would do wonders!
@fallofmanbrand4 жыл бұрын
nice video bro
@SouthernSeneca4 жыл бұрын
These videos are clearing my interview concepts
@SouthernSeneca4 жыл бұрын
could you make a video on closures?
@SouthernSeneca4 жыл бұрын
this was fun and helpful
@SouthernSeneca4 жыл бұрын
Please do a video on hoisting
@SouthernSeneca4 жыл бұрын
Thanks for sharing, very helpful
@SouthernSeneca4 жыл бұрын
Very helpful, thank you
@AdeelImranr5 жыл бұрын
Here is the code for this video github.com/adeelibr/understaning-node-fs-and-puppeteer/tree/master/misc