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

Комментарии • 17

  • @ramiworkstation
    @ramiworkstation 3 месяца назад +5

    I subscribed because you are nice and I liked you. I enjoy learning from you. Thank you 🌻

  • @chagantisubhash
    @chagantisubhash Месяц назад

    Great video!! Please add more.

  • @ibrahimhassoun2595
    @ibrahimhassoun2595 18 дней назад

    Thank you!

  • @mahendranath2504
    @mahendranath2504 6 месяцев назад +2

    Nice thank you so much

  • @user-jc7is5nu8q
    @user-jc7is5nu8q Месяц назад

    I am wondering which auto formatter do you use. It's so great.

  • @WhyNot-fp6cv
    @WhyNot-fp6cv 3 дня назад

    How if incoming from client = JSON.stringify ?
    Because in server side need to JSON.parse before.

    • @ansonthedev
      @ansonthedev  2 дня назад

      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.

  • @PSKI1
    @PSKI1 2 месяца назад

    Matur suwun bro

  • @laiiyabro1055
    @laiiyabro1055 6 месяцев назад +1

    bro how to validate the contact number and any int number (is a number between 0 - 5 like this)

    • @ansonthedev
      @ansonthedev  6 месяцев назад +1

      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.

  • @pavankumar-of4ew
    @pavankumar-of4ew 3 месяца назад

    i am still getting the error in video17:32

  • @tomassabol59
    @tomassabol59 6 месяцев назад

    how is this better compared to libs like zod or arktype?

    • @ansonthedev
      @ansonthedev  6 месяцев назад +2

      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.

  • @anishbishnoi29xD
    @anishbishnoi29xD 5 месяцев назад

    Please make video zod with express js. 😊

  • @WhyNot-fp6cv
    @WhyNot-fp6cv 5 дней назад

    U tutorial title with tutor title before and before, code stack so confused!.
    Why not created clean code every tutorial title.