/brad-l1

Simple authentication system

Primary LanguageJavaScript

Node.js Login System With Passport

Traversy Media

L1

npm init
 Simple authentication system
 app.js
 Brad Traversy

copy all dependencies

npm install
cd /
cd mongodb/bin
mongo
show dbs
use loginapp
db.dropDatabase(); = loginapp is remove
show dbs

use loginapp
db.createColleciton('users');
show collections

express-validator

  middleware options

node app

localhost:3000

localhost:3000/users/login

localhost:3000/users/register

bootstrap, download

bootstrap, examples, narrow jumbotron, ctrl+u jumbotron.css copy & paste it to paster style.css

bcryptjs

mongo
show dbs
use loginapp
show collections
db.users.find()

passportjs, authenticate