Use JOI to Validate Data in Express with TypeScript

  Рет қаралды 4,809

Tadnology

Tadnology

Күн бұрын

Hello, KZbin.
In this video, we will be looking at how we can validate data we get from a client before we try to add it to our database. You always need to ensure that the data you add to your database is in the correct format. It is not enough to assume the client side has done enough validation, your backend too needs to validate the data.
This prevents any malicious data from being submitted to your database, also helps keep your database to be consistent.
We are using JOI to validate the data we get from the client: we are looking at how to validate emails, nested objects and more.
TadJobs API Playlist: • Setup Express.js with ...
Read more about JOI: joi.dev/api/
Thank you for checking out the video.
Please do not forget to subscribe!
#typescript #joi #datavalidation

Пікірлер: 6
@LekkyDev
@LekkyDev Жыл бұрын
Great tutorial. Thanks!
@tadnology
@tadnology Жыл бұрын
You're welcome. Thanks for checking out the video.
@artursargsyan4377
@artursargsyan4377 Жыл бұрын
How to use typescript interfaces with nested objects with Joi?
@tadnology
@tadnology Жыл бұрын
I do not get your question. You mean that should have been the title of the video?
@hemapriyakb317
@hemapriyakb317 Жыл бұрын
can't access the above code?
@generaldave123
@generaldave123 2 ай бұрын
Please I’m done with this How can I learn how to link my frontend The reason I watched this videos to the end was to learn how to link the frontend and backend Which you said you’ll do initially
Validating JSON with TypeScript Interfaces; JSON Schema, TSDoc
35:40
Michigan TypeScript
Рет қаралды 7 М.
大家都拉出了什么#小丑 #shorts
00:35
好人小丑
Рет қаралды 92 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 61 МЛН
How To Use TypeScript With Express & Node
17:05
Colt Steele
Рет қаралды 70 М.
Fixing TypeScript's Blindspot: Runtime Typechecking
15:44
Jack Herrington
Рет қаралды 29 М.
Express API Validation with Joi | For Absolute Beginners
1:40:00
Syed Zano
Рет қаралды 4,9 М.
Express JS with TypeScript - Setup, Examples, Testing
1:20:13
Anson the Developer
Рет қаралды 30 М.
Build a CRUD API with TypeScript, Express, MongoDB, Zod and Jest
1:38:56
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 34 М.
Полная настройка Node.js с TypeScript в 2023
17:36
Владилен Минин
Рет қаралды 35 М.
How To Call a REST API In Java - Simple Tutorial
29:14
Coding with John
Рет қаралды 272 М.
How To Configure TypeScript in NodeJS - Beginners Tutorial
16:15