Express JS #10 - Validation

  Рет қаралды 16,130

Anson the Developer

Anson the Developer

Күн бұрын

Пікірлер: 22
@DariusD0815
@DariusD0815 Ай бұрын
Great video. Maybe its worth mentioning that there is also a "bail" option that breaks the validation chain when a rule check fails. So that it is not necessary to check the length when a field is empty or not a string.
@ramiworkstation
@ramiworkstation 7 ай бұрын
I subscribed because you are nice and I liked you. I enjoy learning from you. Thank you 🌻
@mirzakhursheedabbas4184
@mirzakhursheedabbas4184 3 ай бұрын
Simply saying in this section u rocked❤ .your content is >>>>>>> than my paid courses huge respect from india.Than q so much sir for providing this kind of lectures😍
@QQmatt-c5i
@QQmatt-c5i 5 ай бұрын
I am wondering which auto formatter do you use. It's so great.
@chagantisubhash
@chagantisubhash 5 ай бұрын
Great video!! Please add more.
@mahendranath2504
@mahendranath2504 10 ай бұрын
Nice thank you so much
@pavankumar-of4ew
@pavankumar-of4ew 7 ай бұрын
i am still getting the error in video17:32
@ibrahimhassoun2595
@ibrahimhassoun2595 4 ай бұрын
Thank you!
@mohmmaadsd6703
@mohmmaadsd6703 10 күн бұрын
your best
@PSKI1
@PSKI1 5 ай бұрын
Matur suwun bro
@laiiyabro1055
@laiiyabro1055 9 ай бұрын
bro how to validate the contact number and any int number (is a number between 0 - 5 like this)
@ansonthedev
@ansonthedev 9 ай бұрын
You can use a regular expression to validate a phone number to ensure it matches a specific pattern. To validate numeric values you can just check if its within range by checking if it's greater than 0 or less than 5.
@WhyNot-fp6cv
@WhyNot-fp6cv 3 ай бұрын
How if incoming from client = JSON.stringify ? Because in server side need to JSON.parse before.
@ansonthedev
@ansonthedev 3 ай бұрын
If you pass nested objects they will not parse correctly on the server. So the server needs to handle the JSON in a string format.
@anishbishnoi29xD
@anishbishnoi29xD 9 ай бұрын
Please make video zod with express js. 😊
@tomassabol59
@tomassabol59 10 ай бұрын
how is this better compared to libs like zod or arktype?
@ansonthedev
@ansonthedev 10 ай бұрын
I don't think the purpose of this video is to say it is better than other libraries, the point is to show the importance of validation. You can use whatever library you want to achieve it, but my goal is to show when to do it and how. If you don't like express-validator you can use something else, all you need to do is just make sure the library you use is validating the data before you use it.
@WhyNot-fp6cv
@WhyNot-fp6cv 4 ай бұрын
U tutorial title with tutor title before and before, code stack so confused!. Why not created clean code every tutorial title.
@ansonthedev
@ansonthedev 4 ай бұрын
?
@WhyNot-fp6cv
@WhyNot-fp6cv 3 ай бұрын
@@ansonthedev ok is good iam learn
@GabrielYasso-og7zc
@GabrielYasso-og7zc 17 күн бұрын
flowless explanation. thanks a lot.
Express JS #11 - Routers
19:13
Anson the Developer
Рет қаралды 8 М.
Express crash course with postman testing
52:51
Hitesh Choudhary
Рет қаралды 35 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Hashing Passwords in Node and Express using bcrypt
17:38
Sam Meech-Ward
Рет қаралды 33 М.
Error Handling in NodeJS (Complete Guide) | Node Tutorial
17:54
Nikita Dev
Рет қаралды 45 М.
I Stopped Using Express.js: Because Bun and Hono 🔥
10:23
Sam Meech-Ward
Рет қаралды 131 М.
🤯 Express.js 5 is here (since a month already, actually)
9:58
How to handle Node.js errors like a Pro?
12:44
Software Developer Diaries
Рет қаралды 36 М.
Node.js Crash Course
2:06:35
Traversy Media
Рет қаралды 265 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.