# Vue.js 環境架設
<hr>
> [name=柯利韋]
> [time=Thu, Dec 05, 2019]
[TOC]
---
![海報](https://i.imgur.com/QxGWJHl.png =450x)
---
https://www.surveycake.com/s/WNQg0
![問卷](https://i.imgur.com/v2TlSsu.png =570x)
note:https://colab.research.google.com/drive/1Pr37eLru3I_ZykwxfU3haHRLp4fKWE0w
---
https://hackmd.io/@k139/vuejs
![簡報連結](https://i.imgur.com/kyM67kj.png =550x)
---
## 安裝 Chrome
----
[下載連結](https://www.google.com/intl/zh-TW/chrome/)
<hr />
https://www.google.com/intl/zh-TW/chrome/
----
![點擊下載](https://i.imgur.com/JIRWeaY.png)
----
![點擊接受](https://i.imgur.com/6z7Nj3m.png)
----
![點擊執行](https://i.imgur.com/8bhWFpq.png)
----
![等待](https://i.imgur.com/2r7mU50.png)
----
![成功安裝](https://i.imgur.com/vgafgFf.png)
---
## 安裝 Vue.js devtools
----
[下載連結](https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd)
<hr />
https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd
----
![加到 Chrome](https://i.imgur.com/l6Ytr4u.png)
----
![新增擴充](https://i.imgur.com/xvVSar7.png)
----
![安裝成功](https://i.imgur.com/Nf2y7iN.png)
----
## 安裝編輯器(Visual Studio Code)
----
[下載連結](https://code.visualstudio.com/)
<hr />
https://code.visualstudio.com/
----
![點擊下載](https://i.imgur.com/8SiFJ5H.png)
----
![開啟安裝檔](https://i.imgur.com/Z66ci8V.png)
----
![我接受](https://i.imgur.com/dbb9KlT.png)
----
![下一步](https://i.imgur.com/0AJtyWD.png)
----
![下一步](https://i.imgur.com/T3LpBUa.png)
----
![打勾](https://i.imgur.com/8QSEBMd.png)
----
![安裝](https://i.imgur.com/YI6AnM5.png)
----
![完成](https://i.imgur.com/pArflBS.png)
---
### 其他編輯器
+ [Sublime Text](https://www.sublimetext.com/)
+ [Atom](https://atom.io/)
---
## 設定 Visual Studio Code
---
### 安裝中文套件
----
![插件商店](https://i.imgur.com/Bhhi8Am.png)
----
搜尋 `chinese`
![搜尋安裝](https://i.imgur.com/iX0mPqI.png)
----
![重啟](https://i.imgur.com/lsLBpx3.png)
----
![完成](https://i.imgur.com/czazDid.png)
---
### 安裝 Vue.js 套件
----
![插件商店](https://i.imgur.com/EzxHYow.png)
----
搜尋 `vue 2 snippets`
![搜尋安裝](https://i.imgur.com/V6HeF9F.png)
----
![完成](https://i.imgur.com/MIMF22R.png)
---
### 安裝 Preview on Web Server 套件
----
![插件商店](https://i.imgur.com/EzxHYow.png)
----
搜尋 `preview on web server`
![搜尋安裝](https://i.imgur.com/ZmbF6Dw.png)
----
![](https://i.imgur.com/YbRGadS.png)
---
## 安裝 Node.js
----
[下載連結](https://nodejs.org/)
<hr />
https://nodejs.org/
----
![下載](https://i.imgur.com/NtdmFpM.png)
----
![執行](https://i.imgur.com/0q90Ilg.png)
----
![next](https://i.imgur.com/EHSEpXh.png)
----
![accept](https://i.imgur.com/zHucjSz.png)
----
![next](https://i.imgur.com/Fh4zfXF.png)
----
![next](https://i.imgur.com/FbvPjQm.png)
----
![next](https://i.imgur.com/dBJiQ0p.png)
----
![install](https://i.imgur.com/XMn5EQ4.png)
----
![finish](https://i.imgur.com/n2pTTSr.png)
----
開啟 `cmd`,輸入 `node -v` 跟 `npm -v`
如果沒有出現版本號,<big style="color:red">請舉手</big>
![](https://i.imgur.com/otOZDrE.png =800x)
---
## Git
----
甚麼是 Git?
> git 是一個分散式版本控制軟體
> [name=<a href="https://zh.wikipedia.org/wiki/Git">wiki</a>]
----
![](https://dvblobcdnjp.azureedge.net//Content/Upload/Popular/Images/2017-06/e99e6b5e-ca6c-4c19-87b7-dfd63db6381a_m.jpg)
----
先來講個故事
在一個月黑風高的夜晚
小黑在寫計概作業
他的組員已經完成了各自的部分了
於是輪到他要來完成他的部分
但是他怕他把組員的 code 改壞
於是...
----
![](https://i.imgur.com/F5ZHGZs.png)
----
這時小黑的組員小白看不下去了
他跳出來說
我幫你記住你每次改了甚麼
要是改壞了
因為我記得你改了什麼,所以我可以幫你改回去
這位小白就是 git
----
![local git](https://i.imgur.com/Kh7pUMp.png =500x)
----
這時候組員小灰就不開心了
啊都你們玩啊
你們改了甚麼我都不知道
這時老師就出來說
別吵啦,我幫全部的人記
這位老師就是 GitHub
----
![all git](http://www.maxlist.xyz/wp-content/uploads/2018/11/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-02-%E4%B8%8B%E5%8D%884.39.48.png =680x)
----
這時老師就不開心了
老師每次要收作業時都還要再問大家
你們是哪個記錄要拿來交作業
所以他決定指派組長來幫他記哪個記錄是要交作業、哪個記錄是還正在寫的
這個組長就叫做 Git Flow
----
![git flow](https://gitbook.tw/images/tw/gitflow/why-need-git-flow/flow.png)
----
### 安裝 Git
----
[下載連結](https://git-scm.com/download)
<hr />
https://git-scm.com/download
----
![windows](https://i.imgur.com/r1jzDDB.png)
----
![下載](https://i.imgur.com/n4FfHKt.png)
----
![開始安裝](https://i.imgur.com/VViFzdF.png)
----
![next](https://i.imgur.com/unhD4lG.png)
----
![next](https://i.imgur.com/EjvVS7A.png)
----
![next](https://i.imgur.com/GXWF85e.png)
----
![next](https://i.imgur.com/VUM1Me5.png)
----
![next](https://i.imgur.com/YYQyMju.png)
----
![next](https://i.imgur.com/c3exqQu.png)
----
![next](https://i.imgur.com/ptwg6na.png)
----
![next](https://i.imgur.com/iKDlmyD.png)
----
![next](https://i.imgur.com/ztpvFzg.png)
----
![next](https://i.imgur.com/PoC18FQ.png)
----
![next](https://i.imgur.com/H5p4sud.png)
----
![finish](https://i.imgur.com/kdRoiHy.png)
----
![完成](https://i.imgur.com/HI46kgh.png)
----
### Github 申請
----
[Github 網址](https://github.com/)
<hr />
https://github.com/
----
這邊就自己註冊囉~
有問題的舉手
另外建議資工系的,username 寫學號
----
### 學習資源
+ [Git 基礎](https://backlog.com/git-tutorial/tw/intro/intro1_1.html)
+ [Git 詳細解說](https://hackmd.io/@Bcd8AJScSHqGSpyrbRXrtw/rJyDZZGEM)
+ [Git Flow 簡介](https://gitbook.tw/chapters/gitflow/why-need-git-flow.html)
---
## 開始寫 code
----
[課程專案網址](https://github.com/niclin/vue-course)
<hr />
https://github.com/niclin/vue-course
----
![複製網址](https://i.imgur.com/RufnLGp.png)
----
![開 git bash](https://i.imgur.com/nG67Vh5.png)
----
![clone](https://i.imgur.com/qzNQYJ2.png)
----
![完成](https://i.imgur.com/qmoeNxA.png)
----
![open with code](https://i.imgur.com/NObmNf2.png)
----
![開啟的樣子](https://i.imgur.com/0z93xi2.png)
----
![ctrl+shift+L](https://i.imgur.com/8nxfDAN.png)
----
![防火牆](https://i.imgur.com/rptvFtp.png)
----
![chrome](https://i.imgur.com/tQq7MCi.png)
----
![完成](https://i.imgur.com/PveTzzu.png)
----
![開始練習](https://i.imgur.com/XYdMTyj.png)
----
![按 vue](https://i.imgur.com/yAbyOCq.png)
----
![vue debug](https://i.imgur.com/IQCJwrg.png)
---
## 補充
---
### Windows Terminal(Preview)
----
搜尋 `store`
![store](https://i.imgur.com/9VYmRyA.png)
----
搜尋 `windows terminal`
![terminal](https://i.imgur.com/YKxASgX.png)
----
![取得](https://i.imgur.com/Y3EqXkh.png)
----
![](https://i.imgur.com/JfUSadJ.png)
----
![](https://i.imgur.com/J4SCJme.png)
----
![](https://i.imgur.com/98BYjHn.png)
----
![](https://i.imgur.com/8F8AKaS.png)
---
### 網頁開發歷史
----
網頁的三大元素
![](https://i.imgur.com/4gfPjYo.png =800x)
----
| HTML | CSS | javascript |
|:--- |:---| :--- |
| 超文本標記語言 | 層疊樣式表 | |
| <span style="color:yellow">H</span>yper<span style="color:yellow">T</span>ext <span style="color:yellow">M</span>arkup <span style="color:yellow">L</span>anguage | <span style="color:yellow">C</span>ascading <span style="color:yellow">S</span>tyle <span style="color:yellow">S</span>heets | |
| 網頁的結構 | 讓網頁看起來比較漂亮 | 讓網頁動起來 |
----
![](https://i.imgur.com/2UJQE4n.png)
----
靜態網頁 vs 動態網頁
----
AJAX
<span style="color:yellow">A</span>synchronous <span style="color:yellow">J</span>avaScript <span style="color:yellow">a</span>nd <span style="color:yellow">X</span>ML
他可以 JavaScript 跟 server 要資料,並且更新頁面的資料
----
jQuery
以 JavaScript 來編寫的函式庫
----
DOM
<span style="color:yellow">D</span>ocument <span style="color:yellow">O</span>bject <span style="color:yellow">M</span>odel
----
![](https://www.w3schools.com/js/pic_htmltree.gif)
----
Bootstrap
> Build responsive, mobile-first projects on the web
<hr>
https://getbootstrap.com/
---
Q & A
{"metaMigratedAt":"2023-06-15T02:13:31.622Z","metaMigratedFrom":"YAML","title":"Vue.js 環境架設","breaks":true,"image":"https://i.imgur.com/EezxnK9.png","slideOptions":"{\"slideNumber\":true,\"hash\":true,\"spotlight\":{\"enabled\":false}}","contributors":"[{\"id\":\"8cc048a7-fe3e-43ea-9a96-5050255ec793\",\"add\":8408,\"del\":803}]"}