Angular is a popular front-end JS architecture that uses ANGULAR2. x development front-end interface requires a more stable and fast background,
Today we use Nodejs and express to build a local server under window
Logical steps:
1window operating system, install Nodejs MSI installation package, latest version (6.9.4) comes with NPM (Nodejs plugin manager)
2 using NPM to install Express (Nodejs http plugin) and Express-generator (express4.x version of the command mode and program separation, with the generator to execute the Express command)
3 When the installation is complete, use the ' EXPRESS-E project name ' to generate the Express project
By "retreat" to rationalize the logical steps, we can easily handle the installation process encountered problems
1 Official website Download Nodejs New Edition, I use 6.9.4 version, https://nodejs.org/en/
2 Use the downloaded MSI file to complete the installation process, select all installation options to install, attach, click Next to complete the next step
3 Check if there are nodejs in the environment variable
4 Install Express and express-generator using the command ' NPM install-g Express ' and ' NPM install-g express-generator '
This information is not a hint of initial installation, and the novice installation does not have to be compared with this
5 use ' express-e app ' to create an express project named app in the current directory and follow the prompts
Run ' npm install ' and ' npm start ' to install and run the project in the app folder
6 run the project under the project folder using ' NPM start '
7 default is 3000 Port run project
Use ' localhost:3000 ' to access local projects, successfully
I use the operating system: Win7 64-bit
If you have a problem, follow the logical steps to find the reason repeatedly
Windows Nodejs Environment and express plug-in installation