Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 628 Bytes

File metadata and controls

31 lines (17 loc) · 628 Bytes

Node.js Login

Simple Node.js login using a mongodb database, passport.js and bcrypt.js

Installing

  1. Install MongoDB
  2. Create a new database called with use nodeauth (This name can be changed in the models/user.js file)
  3. Create a Collection with db.createCollection('users')

Running

Run the app with

npm start

You can now access your webpage on localhost:3000

Here's what the page looks like

Login

preview

Register

preview

Members Area

preview