- Node.js 6.x Blueprints
- Fernando Monteiro
- 138字
- 2021-07-14 10:34:59
Installing additional middleware
As you can see in the previous sections, we used some middleware to display messages and the user icon using the gravatar. In this section, we will see how to install some very important modules for our application.
Since we created templates for the signin
, signup
, and profile
pages, we will need to store the users with login and password.
These are the middleware that we will use for this task, with the definition for each one:

Open your terminal/shell and type:
npm install connect-flash connect-mongo express-session gravatar passport passport-local -save
Note
As we can see, we will use MongoDB to store user data; you can find more information about MongoDB at https://www.mongodb.org/, and the installation process at https://docs.mongodb.org/manual/installation/ . We assume that you already have MongoDB installed on your machine and it is running.
- Instant Testing with CasperJS
- Java程序設計實戰教程
- OpenShift開發指南(原書第2版)
- Developing Mobile Web ArcGIS Applications
- R語言編程指南
- 精通API架構:設計、運維與演進
- Learning ArcGIS Pro
- 程序員修煉之道:通向務實的最高境界(第2版)
- Web Development with MongoDB and Node(Third Edition)
- Spring Security Essentials
- Android Development Tools for Eclipse
- Android系統下Java編程詳解
- Hacking Android
- Python硬件編程實戰
- 深入理解Java虛擬機:JVM高級特性與最佳實踐