Angular JS 和 node.js

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

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

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

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

******************************************************************************************************************************************************************************************************************************web

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

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

                                                                                    (若是下载的速度比较慢的话能够使用淘宝镜像下载速度回快些:网址: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 进行你的每步操做。

其结果以下图所示:

相关文章
相关标签/搜索