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


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

Getting started

$ git clone
$ cd core
$ docker-compose up

Top comments (0)

The JavaScript Brief

1. Top 5 MERN STACK projects to improve your practical understanding

Boost your MERN Stack development skills by undertaking interesting beginner projects. These five engaging projects cover web applications and range from social media website applications to geo-social networking maps. Hone your understanding and apply modern techniques backed up by hands-on experience.

2. How To Optimize Your React App’s Performance

Learn the best optimizing techniques to make your React applications faster and more efficient. Focusing on the identification of performance bottlenecks and common pitfalls to avoid, these optimization strategies will keep your applications running smoothly even when faced with growing complexity.

3. A story of let, const, object mutation, and a bug in my code

In the pursuit of bug-free code, explore an incident involving a mix-up between const and let, making sure your custom code works effectively with third

party documentation. Discover best practices on program flow and learn about JavaScript's unpredictable aspects to ensure your core code is robust.