angularJS--環境配置

來源:互聯網
上載者:User

標籤:空白頁   單元   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--環境配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.