---restore content starts---
This article for Bo Master original article, without Bo Master permission not reproduced!
Nodejs has become the emerging front-end technology, often with other scripting languages can be combined, for beginners may be missing a little bit of practical experience often at compile time to produce exceptions and do not know how to solve, in this I use a practical example to do a typical example:
The front-end structure of the project is as follows:
Deployment ideas:
Front-end Proxy server (Node)
- Install the NODEJS server (you can visit the Nodejs website to browse the downloads page to install gradually)
install node. js on Window
You can use the following two ways to install.
1. Windows installation package (. msi)
32-bit installation package: Https://nodejs.org/dist/v4.4.3/node-v4.4.3-x86.msi
64-bit installation package: Https://nodejs.org/dist/v4.4.3/node-v4.4.3-x64.msi
For example, in the v0.10.26 version of this article, the other versions are similar, installation steps:
Step 1: Double-click the downloaded installation package v0.10.26as follows:
Step 2: Click on the run above, the following screen will appear:
Step 3: Tick the Accept Agreement option and click the Next button:
Step 4:node.js The default installation directory is "C:\Program files\nodejs\", you can modify the directory and click Next:
Step 5: Click the tree icon to select the installation mode you want, then click Next Step Next (next)
Step 6: Click Install to start installing node. js. You can also click Back to modify the previous configuration. And then click Next (Next):
Installation process:
Click the Finish button to exit the Setup wizard.
To detect if the PATH environment variable is configured with node. js, click start = "Run =" Enter "cmd" + = Enter the command "path" and output the following result:
Path=c:\oraclexe\app\oracle\product\10.2. 0 \server\bin; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Windows\System32\WindowsPowerShell\v1. 0 \;c:\python32\python; C:\MinGW\bin; C:\Program files\gtk2-5.5\ bin; C:\Program files\nodejs\; C:\USERS\RG\APPDATA\ROAMING\NPM
We can see that the environment variable already contains the C:\Program files\nodejs\
Check the node. JS version
2. Windows binaries (. exe) installation
32-bit installation package: Http://nodejs.org/dist/v0.10.26/node.exe
64-bit installation package: Http://nodejs.org/dist/v0.10.26/x64/node.exe
Installation steps
Step 1: Double-click on the downloaded installation package Node.exe, the following interface will appear:
Clicking the Run button will show the command-line window:
version Test
Enter the directory where the Node.exe is located, as follows:
If you get the above output, you have successfully installed node. js.
- Using the Compile tool: Node
Go to the project directory with global installation:
---restore content ends---
This article for Bo Master original article, without Bo Master permission not reproduced!
Nodejs has become the emerging front-end technology, often with other scripting languages can be combined, for beginners may be missing a little bit of practical experience often at compile time to produce exceptions and do not know how to solve, in this I use a practical example to do a typical example:
The front-end structure of the project is as follows:
Deployment ideas:
Front-end Proxy server (Node)
- Install the NODEJS server (you can visit the Nodejs website to browse the downloads page to install gradually)
install node. js on Window
You can use the following two ways to install.
1. Windows installation package (. msi)
32-bit installation package: Https://nodejs.org/dist/v4.4.3/node-v4.4.3-x86.msi
64-bit installation package: Https://nodejs.org/dist/v4.4.3/node-v4.4.3-x64.msi
For example, in the v0.10.26 version of this article, the other versions are similar, installation steps:
Step 1: Double-click the downloaded installation package v0.10.26as follows:
Step 2: Click on the run above, the following screen will appear:
Step 3: Tick the Accept Agreement option and click the Next button:
Step 4:node.js The default installation directory is "C:\Program files\nodejs\", you can modify the directory and click Next:
Step 5: Click the tree icon to select the installation mode you want, then click Next Step Next (next)
Step 6: Click Install to start installing node. js. You can also click Back to modify the previous configuration. And then click Next (Next):
Installation process:
Click the Finish button to exit the Setup wizard.
To detect if the PATH environment variable is configured with node. js, click start = "Run =" Enter "cmd" + = Enter the command "path" and output the following result:
Path=c:\oraclexe\app\oracle\product\10.2. 0 \server\bin; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Windows\System32\WindowsPowerShell\v1. 0 \;c:\python32\python; C:\MinGW\bin; C:\Program files\gtk2-5.5\ bin; C:\Program files\nodejs\; C:\USERS\RG\APPDATA\ROAMING\NPM
We can see that the environment variable already contains the C:\Program files\nodejs\
Check the node. JS version
2. Windows binaries (. exe) installation
32-bit installation package: Http://nodejs.org/dist/v0.10.26/node.exe
64-bit installation package: Http://nodejs.org/dist/v0.10.26/x64/node.exe
Installation steps
Step 1: Double-click on the downloaded installation package Node.exe, the following interface will appear:
Clicking the Run button will show the command-line window:
version Test
Enter the directory where the Node.exe is located, as follows:
If you get the above output, you have successfully installed node. js.
- Using the Compile tool: Node
1 Yum Install node 2 Yum Update
- Dependent library installation (EXPRESSJS+BOWER+GRUNT+PM2)
- EXPRESSJS Installation
Reference: http://expressjs.com/en/starter/installing.html
2.Bower Installation
Reference: Https://bower.io
3.Grunt Installation
Reference: https://gruntjs.com/getting-started
- Release process
- Start Stop mode
- Problem Finder
Nodejs Project Deployment