Operating environment: WIN8 system, it is recommended to use GIT Bash (Command line tool under window)
1, install node. js
Download: https://nodejs.org/Directly Click Install, will download the corresponding version according to your operating system
Detect if Node-v is installed
Now let's run a simple node program, create a hello.js file, and copy the following code:
var http = require ("http"); Http.createserver (function (request, response) { Response.writehead ($, {"Content-type": "Text/html"}); Response.Write ("Hello world!"); Response.End (); }). Listen (8080); Console.log ("Server running at http://localhost:8080/");
Open the cmd command line, go to the directory where Hello.js is located, run node Hello.js
Open Browser Input http://localhost:8080/
Nodejs's Understanding: node is actually a JavaScript runtime environment, the encapsulation of the V8 engine
My node version is: v0.12.4, the NPM Management installation package is installed by default
Detect if the NPM Management Pack is installed NPM-V
# #独立安装 NPM Management Pack (in the case of Git installation)
Download the NPM package to your local
After downloading to the NPM file, the command line first goes to the NPM location and enters the following code to install it.
Node Reference:
node. JS First Experience
node. JS notes, Nodejs, Express, NPM installation
Node. JS Introductory Book
Node Getting Started community
2, install Yeoman (now web App Scaffolding tool)
NPM Install-g yo
Resources:
http://www.iinterest.net/2013/05/04/f2e-tool-yeoman/
Http://yeoman.io/index.html
3, install Bower (Web package (framework, library, public part) manager)
NPM Install-g Bower
Resources:
Bower to solve JS dependency management
4, install grunt to global (can be used anywhere in the system)
Automation tools, build tool
Front-end integration solutions to solve the fundamental problems of front-end engineering:
Development team Code style is not unified, how to enforce the development of norms
How the component libraries developed by the front end are maintained and used
How to modularize a front-end project
Compression required before server deployment, checking how the process is streamlined and how well the process is
Grunt Build Tool First experience