- type npm i or npm run install from root in command line to install everything
- type node . or npm run start to launch the server on port 3000
- home -> http://localhost:3000
- login -> http://localhost:3000/login
- auth required -> http://localhost:3000/authrequired
- logout -> http://localhost:3000/logout
- npm init (create project)
- npm i --save express body-parser passport passport-local connect-ensure-login express-session uuid
- create index.js
- create home page and login page
- see comments in index.js & html pages for next steps
- config of express-session : lines 24 -> 38
- config of passport with local strategy : lines 41 -> 78
- mounting endpoints : lines 80 -> 110
- connect ensure login : line 110
if you want to support the creator : Donate with PayPal.