Demo app done in Express, lowdb, and Passport.
- lowdb is a small local JSON database
- Passport is authentication library
Requirements: Node
-
clone repo
-
install packages
$ npm install
- set up enviroment variables
- copy .env.sample, and rename it .env
- fill in the
SESSION_SECRET
$ npm run dev
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