- 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.
- Monkey Game Development:Beginner's Guide
- Vue.js快跑:構建觸手可及的高性能Web應用
- Python Deep Learning
- Android 9 Development Cookbook(Third Edition)
- Python Network Programming Cookbook(Second Edition)
- PLC編程及應用實戰
- Learning Apache Mahout Classification
- Corona SDK Mobile Game Development:Beginner's Guide(Second Edition)
- Learning Apache Cassandra
- Python自然語言理解:自然語言理解系統開發與應用實戰
- C++ System Programming Cookbook
- 深入實踐DDD:以DSL驅動復雜軟件開發
- 算法設計與分析:基于C++編程語言的描述
- 美麗洞察力:從化妝品行業看顧客需求洞察
- 現代JavaScript編程:經典范例與實踐技巧