Node + Express 完全新手教學 - 4-外傳 [Express Generator ]
前言:
對於前面1-4的操作 。
因該~~立刻~~覺得很煩。
很討厭要開一堆資料夾跟預設檔案對吧。還要把CODE搬來搬去 = =
所以我們要介紹一個東西叫 Express Generator
他會幫我們建立出我們需要的架構資料夾跟空的基本JS跟EJS檔案
實作:
第一步-安裝:(還是NPM安裝)
  npm install express-generator -g  
第二步-建立你要App名稱:
 express -e --ejs justforfun  
[justforfun 可以是你要的任何名稱 等他建立好後]
[-e -ejs 是為了我們是用ejs [Express Generator] 預設是用jade] (更多的參數可以參考備註壹)
 cd justforfun  
 npm install  
Windows:
 set DEBUG=myapp:* & npm start  
MacOS or Linux:
 DEBUG=myapp:* npm start  
就會看到
是不是簡單多了,就可以開始把要的東西加進來後就可以展示你的網站了。
備註壹:
Options:
    -h, --help          output usage information
    -V, --version       output the version number
    -e, --ejs           add ejs engine support (defaults to jade)
        --hbs           add handlebars engine support
    -H, --hogan         add hogan.js engine support
    -c, --css <engine>  add stylesheet <engine> support (less|stylus|compass|sass) (defaults to plain css)
        --git           add .gitignore
    -f, --force         force on non-empty directory 


![Node + Express 完全新手教學 - 4-外傳 [Express Generator ]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiL5y5NZrI-Xt-whFjmrvVEAmLOT-oyYWegdqwk3Im_QmCBMBo75W2Vp4IAKPVqvTOJLufr9VLMa7TLtWgEW3NMkXOaKASyn2pr84-QiHP6tkDciWh9IRjvsM_godi7gft7XLyOC7nRgA/s72-c/Express_Generator.png) 
