Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 866 Bytes

File metadata and controls

36 lines (27 loc) · 866 Bytes

Requirements

  1. Node version >= 8.0.0
  2. A running MongoDB instance

Setup

Clone the project with degit

npm install -g degit
degit mwardle/authentication-tutorial
cd authentication-tutorial

Install dependencies:

npm install

Create a .env file for your configuration with contents similar to the following:

# disable secure cookies for dev
MYAPP_SECURE_COOKIES=false
# secrets for cookie signing, current one comes first
MYAPP_COOKIE_SECRETS='["thisisasecret"]'
# no proxy in dev, change for production if using nginx, etc.
MYAPP_TRUST_PROXY=false
# mongodb database connection string for session data
MYAPP_MONGODB_SESSION_URI=mongodb://127.0.0.1:27017/myappsessions
# mongodb database connection string for application data
MYAPP_MONGODB_URI=mongodb://127.0.0.1:27017/myapp