码迷,mamicode.com
首页 > Web开发 > 详细

angularJS--环境配置

时间:2017-05-15 19:55:42      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:空白页   单元   host   step   localhost   nec   入门   启动命令   github   

1、Node.js下载安装    

下载地址:http://nodejs.org/    

安装完后,一般会把nodeJs的安装路径写入Path环境变量里。(如没有的话,请手动配置)

检查安装是否成功(dos命令窗口):node –version 或 node -v

安装Testacular单元测试程序: npm install karma

npm install -g express

2、git下载安装    

下载地址:http://git-scm.com/    

安装完后,一般会把nodeJs的安装路径写入Path环境变量里。(如没有的话,请手动配置)

以下命令从Github复制本教程项目的源代码文件(dos命令窗口):

git clone git://github.com/angular/angular-phonecat.git

这个命令会在您当前文件夹中建立新文件夹angular-phonecat。

3、服务器的启动命令    npm start

4、测试服务器的启动命令    npm test


5、入门学习的例子的获取    git checkout -f step-0


6、例子的运行    cd到angular-phonecat文件夹

启动:   npm start

导出例子程序:

git checkout -f step-0

例子代码生产在文件夹angular-phonecat/app下

npm start

浏览器中运行例子:

http://localhost:8000/app/index.html

如果出现空白页,运行

http://localhost:8000/

angularJS--环境配置

标签:空白页   单元   host   step   localhost   nec   入门   启动命令   github   

原文地址:http://www.cnblogs.com/cysd/p/6857522.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!