auth tips
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)
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步