This document is in 64 for the Win7 system in progress, Linux environment everyone can similar operation.
1.nodejs Installation
Download the installation package to the NODEJS website and click on the next steps as per the default configuration. Nodejs official website https://nodejs.org/, this article installs the version is 0.12.7.
2.express Installation
A. Execute command: NPM install EXPRESS-GENERATOR-G, the Express app Builder will be installed automatically.
B. Create an app command: Express MyApp, where you need to first switch to the directory where the app resides, this article is the D:\webdev\express directory.
C. Enter the MyApp directory to install the dependent package, execute the command npm install. This step may be slow, and it will take more than 10 minutes for this article to install.
D. Run Express:set Debug=myapp & NPM start. If this step is an error, it may be that the NPM error, or lack of dependencies, and so on. You can remove the MyApp directory under the Node_modules directory and re-execute the previous step. This article operation, the failure of one time, the second success, may be related to the network, download is not complete.
Browser access: Http://localhost:3000/, if you can return: Welcome to express, the Express installation is successful.
3.MongoDB Installation
This step I tried to install the official website to download https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.0.5-signed.msi?_ga= 1.127732685.1744037696.1439898068, always can not succeed, that is, the use of Thunder offline download is not possible. Later I found on-line: Http://downloads.mongodb.org/win32/mongodb-win32-x86_64-3.0.5.zip, this can be successful, estimated and domestic network restrictions have relations.
4.mongodb driver Installation
The process of installing the NPM install Mongoskin command in the MyApp directory is slow. If you are prompted that the version of MongoDB is incorrect, you can use the NPM remove MongoDB command to uninstall MongoDB First and then install it by specifying the version number, which is the NPM install [email protected] version number.
Execution of require (' Mongoskin ') in node mode, if successful without error, indicates that the MongoDB driver installation was successful.
Data reference:
1.https://nodejs.org/
2.http://www.expressjs.com.cn/starter/generator.html
3.https://www.mongodb.org
4.http://www.expressjs.com.cn/guide/database-integration.html#mongo
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
NODEJS+EXPRESS+MONGODB Installation