Express + lowdb + Passport

Demo app done in Express, lowdb, and Passport.

  • lowdb is a small local JSON database
  • Passport is authentication library

Setup

Requirements: Node

  1. clone repo

  2. install packages

$ npm install
  1. set up enviroment variables
  • copy .env.sample, and rename it .env
  • fill in the SESSION_SECRET

Start application

$ npm run dev

Step-by-step Walkthrough

Step-by-step video walkthrough that explains how the app works.

I've also created a separate branch for each commit. To see the code for a particular step:

$ git checkout step_xxx