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

Angular JS 和 node.js

时间:2017-11-11 21:30:34      阅读:359      评论:0      收藏:0      [点我收藏+]

标签:测试   tps   tutorial   下载   运行   org   pre   gis   本地   

首先安装node.js 。网址:https://nodejs.org/en/

然后从GitHub上拉取angular-phonecat代码 。网址:https://github.com/angular/angular-phonecat

参考教程:http://www.angularjs.cn/A003

                 https://docs.angularjs.org/tutorial                   [这个网址可能需要FQ才能看到!]

******************************************************************************************************************************************************************************************************************************

上诉东西安装好后,我们进行下面的步骤:

我们要通过运行下载工具依赖关系:命令为 npm install (在目录angular-phonecat 下按下shift键然后点击右键打开cmd 命令行窗口)

                                                                                    (如果下载的速度比较慢的话可以使用淘宝镜像下载速度回快些:网址:https://npm.taobao.org/  命令为:

                                                       npm install -g cnpm --registry=https://registry.npm.taobao.org)

该项目预先配置了许多npm帮助程序脚本,以便轻松运行开发时所需的常见任务:

  • npm start:启动本地开发Web服务器。
  • npm test:启动Karma单元测试运行器。
  • npm run protractor:运行量角器端到端(E2E)测试。
  • npm run update-webdriver:安装量角器所需的驱动程序。                                                        

本人在输入npm install 命令后好多次都没反应,我建议不要气馁,多试几次就会好的,可能是网络问题。

安装好后就可以根据:网址:https://docs.angularjs.org/tutorial 和http://www.angularjs.cn/A00e 进行你的每步操作。

                                             

Angular JS 和 node.js

标签:测试   tps   tutorial   下载   运行   org   pre   gis   本地   

原文地址:http://www.cnblogs.com/wsws/p/7815365.html

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