Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Sequelize Model Validation!
You have completed Sequelize Model Validation!
Preview
In this workshop, you'll continue to use Sequelize to write robust server-side data validation for a REST API developed with Express. The API allows you to create a user account and retrieve a list of user accounts.
Resources
Additional note for macOS users
Apple introduced some changes with AirPlay when they launched macOS Monterey. Now, the AirPlay Receiver uses port 5000. You will need to follow these instructions to turn off the AirPlay receiver, to be able to use port 5000 with this project.Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
[MUSIC]
0:00
Hi everyone, I'm Guil, a developer and
instructor here at Treehouse.
0:01
As developers, we need to ensure
that the data created and
0:06
updated by users is reliable without
irrelevant and duplicate entries.
0:09
When working with an ORM library like
Sequelize, you can take advantage of its
0:14
built-in data validation and
constraint capabilities.
0:18
Sequelize can run validation on
a model to require specific values and
0:22
define constraints to prevent
incorrect, unexpected or
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up