Grunt Build Tool First experience

Source: Internet
Author: User
Tags install node

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.