What is node. js?
node. JS is a JAVASCRIPT runtime environment based on the Chrome V8 engine. node. JS uses an event-driven, non-blocking I/O model to make it lightweight and efficient.
node. JS is developed by C + + and is actually a JS runtime environment that allows JavaScript to run on the server.
Installation Environmentinstalling node. js and NPM
First enter the NODEJS official website to choose their corresponding system download the latest version, I now use the WINDOW64 bit system, so select the Window64-bit version of the MSI file. Install after download is complete
After the installation is successful, check that the installation is successful, open the command line and enter the following code to view the version number:
Node-V
There is a hint that the version number indicates that the node and NPM environments are already installed
Installing the MongoDB Database
First go to the MongoDB official website to choose their corresponding system download the latest version, I now use the WINDOW64 bit system, so select the Window64-bit version of the MSI file. Install after download is complete
Next
Create a new folder in the D drive MongoDB, change the installation path to the MongoDB folder under the D disk.
Setting environment variables to run MongoDB after installation is complete
How do I set environment variables?
My Computer-right-click Properties-Advanced system Settings-advanced-environment variables
Add a semicolon behind the NPM environment variable in path; Then add the path that you just installed, D:\MongoDB\bin, and install it.
Test Run MongoDB
Enter the following code to view the MongoDB version number
Mongod-v
This gives you a clear view of DB version v3.2.10
The environment is now fully installed and ready for outgoing.
Build a personal blog with NODE.JS+MONGODB (installation environment) (i)