2015年5月2日 星期六

node.js eclipse 環境架設

1: eclipse-php-luna-SR2-win32-x86_64
2: node.js: http://www.nodeclipse.org/updates/
     vjet: http://download.eclipse.org/vjet/updates-0.10
     v8:  http://chromedevtools.googlecode.com/svn/update/dev/
    

  3: vjet 自動提示
      http://git.eclipse.org/c/vjet/org.eclipse.vjet.typelibs.git/commit/ 
      org.eclipse.vjet.typelibs-master.zip 
      透過eclipse    File->Import->General->Existing Projects into Workspace->Select archive file(選擇剛剛下的zip)選擇你想要的語言.
      
再設定下面屬性

  
3: express 安裝
npm install express-generator -g
express -h 確認是否安裝正確

 4:  supervisor
npm install -g supervisor

 
5: 全域變數設置,精簡路徑
//var time = require("./src/globalVar/systemVar.js");
var time = require("systemVar.js");

app.js按右鍵->Run as->Run configurations->Environment->New 變數

沒有留言:

張貼留言