Express JS #10 - Validation
HTML-код
- Опубликовано: 9 сен 2024
- Watch the full tutorial here: • Express JS Full Course
Code Repository: github.com/stu...
Support the Channel:
Become a Member: www.youtube.co...
Become a Patreon: / stuyy
Buy me a Coffee: ko-fi.com/anson
Donate on Streamlabs: streamlabs.com...
Donate on PayPal: paypal.me/anso...
Connect with me:
Twitter: / ansonthedev
Discord: / discord
GitHub: github.com/stuyy
Twitch: / stuy
I subscribed because you are nice and I liked you. I enjoy learning from you. Thank you 🌻
Great video!! Please add more.
Thank you!
Nice thank you so much
I am wondering which auto formatter do you use. It's so great.
How if incoming from client = JSON.stringify ?
Because in server side need to JSON.parse before.
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.
Matur suwun bro
bro how to validate the contact number and any int number (is a number between 0 - 5 like this)
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.
i am still getting the error in video17:32
how is this better compared to libs like zod or arktype?
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.
Please make video zod with express js. 😊
U tutorial title with tutor title before and before, code stack so confused!.
Why not created clean code every tutorial title.
?
@@ansonthedev ok is good iam learn