DEV Community

Cover image for Episode 10: Building a JSON API - Input Validation and Sanitation - Part 1
Nathan Bland
Nathan Bland

Posted on

Episode 10: Building a JSON API - Input Validation and Sanitation - Part 1

Dropping user provided data directly into your database is a bad idea. In this episode, we'll look at using validator.js to help with that. We'll also spend a little time talking about npm packages, and trust.

I really didn't want to do this in more than one part, but it was going to be a very, very long episode. Part 2 will be along very soon (Source code already has it). As always, drop a comment if you would like to see me cover something else, or cover something differently.

Thanks for watching!

Source code:

GitHub logo NathanBland / core

Repository for the "core" video series

core

An express.js powered json api built for the "core" series.

Getting started

$ git clone git@github.com:NathanBland/core.git
$ cd core
$ docker-compose up



Latest comments (0)