Explore how to validate data on the server using a REST API developed with Node.js and Express. The API will allow you to create a user account and retrieve a list of user accounts.
Overview
Syllabus
The Importance of Data Validation
As developers, we should strive to create applications that ensure that data created and updated by our users is useful.
Chevron 6 steps- instruction
What is Data Validation?
- instruction
Get Started with the Project
- instruction
Review the Routes
- instruction
Test the Routes
- instruction
Further Testing the New User Account Route
-
Data Validation Review
5 questions
Validating Data
Define data validation for required fields to ensure that new users provide those values. And learn ways to go further with validation using a data validation library or an object-relational mapping library (ORM) like Sequelize.
Chevron 7 steps- instruction
Define Data Validation Requirements
- instruction
Return Validation Error Messages
- instruction
Test Validation Rules in Postman
- instruction
Format Validation Error Messages
- instruction
Explore Data Validation Types
- instruction
Next Steps: Expand Data Validation Requirements
-
Validating Data Review
5 questions
Taught by
Guil Hernandez