DEV Community

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

Posted on

9 2

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



SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay