https://scotch.io/tutorials/easy-node-authentication-setup-and-local
https://scotch.io/tutorials/upgrading-our-easy-node-authentication-series-to-expressjs-4-0
- Express is the framework.
- Ejs is the templating engine.
- Mongoose is object modeling for our MongoDB database.
- Passport stuff will help us authenticating with different methods.
- Connect-flash allows for passing session flashdata messages.
- Bcrypt-nodejs gives us the ability to hash the password.
I use bcrypt-nodejs instead of bcrypt since it is easier to set up in windows. For more information on the newer ExpressJS 4.0 dependencies (morgan, body-parser, cookie-parser, method-override, express-session), see this article on
four packages that were moved into their own repositories. These packages are: * express.logger (now morgan) * express.cookieParser (now cookie-parser) * express.bodyParser (now body-parser) * express.session (now session)