DEV Community

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

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

nathanbland profile image Nathan Bland ・1 min read

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



Discussion (0)

pic
Editor guide