Introduction to Nodejs installation using Windows.
1. Download and install
nodejs:https://nodejs.org/download/
Mongodb:http://www.mongodb.org/downloads
2. View the version and install Express
Nodejs after the installation is successful, open the cmd command line:
Node-v: View Nodejs version
Npm-v: View NPM version
When the version is displayed, the installation is successful and the Express installation begins
Before express3.6.x, Express needs to be installed globally, and now we only need to install the Express-generator project globally.
installation command:
NPM install-g [email protected]
Can be used after successful installation
Express-v View Version
3. Create a project
Now, start creating a simple project
EXPRESS-E Test: Create a project named Test and support the Ejs template
Express Test: Create a project named Test and support the Jade template (default)
Once the creation is successful, follow the instructions CD test and NPM install.
4. Project operation
Run the Test\bin\www file as required
If you are currently in the test directory,
Enter the node Bin\www startup Project
Open Browser, enter http://localhost:3000
interface display, run successfully.
Nodejs under Windows installation using