DEV Community

Cover image for Episode 12: Building a JSON API - User Authentication in Under an Hour
Nathan Bland
Nathan Bland

Posted on

Episode 12: Building a JSON API - User Authentication in Under an Hour

Grab a cup of coffee, maybe two.

In this episode we add local-user authentication (username, password) to our JSON API in under an hour with help from passport.js, jwt, and a strong dose of patience.

This episode had so much, I almost broke it up several times while editing as it felt like it was too much. However, having an incomplete basic solution at the end of several episodes also felt wrong, so here we are. One hour later, one authentication enabled api.

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



Top comments (0)