<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nita Lin on Medium]]></title>
        <description><![CDATA[Stories by Nita Lin on Medium]]></description>
        <link>https://medium.com/@yanyinitalin?source=rss-d52f06ba872d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Ep-7KuPCtZQQSLzf</url>
            <title>Stories by Nita Lin on Medium</title>
            <link>https://medium.com/@yanyinitalin?source=rss-d52f06ba872d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:23:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yanyinitalin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Mac終端機 (Terminal)設定： iTerm 2]]></title>
            <link>https://medium.com/nitas-learning-journey/mac%E7%B5%82%E7%AB%AF%E6%A9%9F-terminal-%E8%A8%AD%E5%AE%9A-iterm2-ba63efd0df6a?source=rss-d52f06ba872d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba63efd0df6a</guid>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[iterm2]]></category>
            <dc:creator><![CDATA[Nita Lin]]></dc:creator>
            <pubDate>Tue, 15 Jan 2019 13:44:21 GMT</pubDate>
            <atom:updated>2019-01-17T08:07:24.540Z</atom:updated>
            <content:encoded><![CDATA[<p>MacOS+iTerm2+Oh My Zsh</p><p>Mac原生終端機標準設定是白底黑字，就算怎麼設定還是看起來很阿雜，特別在用git的時候總是不知道自己是在哪個branch或身在哪個資料夾裡，更別說那醜醜又非人性化的介面，久而久之，非必要就不想開Terminal了！但人生不能自暴自棄，上帝為你關了一個Terminal會再幫你開啟另外一個Terminal（誤），那就是－iTerm 2啦！</p><blockquote>見證人：自從用了iTerm2人生都變彩色了呢！（再度誤）</blockquote><p>好的，回歸正題，iTerm2是個能替代Mac內建的terminal，好處是介面可以更個人化、人性化也比較美觀，同時他可以開很多分頁就像用瀏覽器一樣。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gAGGWczpQEIi7ezBmd3zEQ.png" /><figcaption>是不是看起來舒服多啦！</figcaption></figure><p>接下來說明如何安裝及設定</p><h3>【如何安裝】</h3><p>我們的安裝順序將會是：iTerm2 → Oh My Zsh</p><h3>#安裝iTerm2</h3><p>有兩種安裝方式</p><p><strong>方法1: 官網下載直接安裝</strong></p><p>直接到官網：<a href="https://www.iterm2.com/downloads.html">https://www.iterm2.com/downloads.html</a>，下載穩定（Stable）版本，解壓縮後將程式移到應用程式Application就可以了。</p><p><strong>方法2: 利用Homebrew安裝</strong></p><p>第二種是透過Homebrew來安裝，Homebrew是Mac專用的免費開源的軟體套件管理工具。</p><p>打開Terminal，依官網指示(<a href="https://brew.sh/">https://brew.sh/</a>) 將下面這段指令貼到Terminal上安裝Homebrew</p><pre>/usr/bin/ruby -e &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)&quot;</pre><p>接下來在Terminal上輸入以下指令安裝iTerm2</p><pre>brew cask install iterm2</pre><p>這樣就完成啦！</p><p>接下來做基本的字型和配色設定</p><p><strong>配色主題</strong></p><p>iTerm2 提供許多<strong>配色主題</strong>下載，先到<a href="https://iterm2colorschemes.com/">這裡</a>把整包下載下來解壓縮。解壓縮後可以發現在 schemes 中有許多副檔名為 .itermcolors 的配色檔可以載入，可以在頁面看哪種配色順眼，我選擇 Tomorrow Night Eighties。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLUiJ-SxkQaI5QP3kv1kmQ.png" /></figure><p>接下來打開iTerm</p><pre>工具列選擇 iTerm &gt; Preferences &gt; Profile &gt; Colors</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ekXWEKDuGXR5XtnZVmGXaQ.png" /></figure><pre>點選右下角 Color Presets &gt; import</pre><p>找到剛剛下載的主題把主題import到列表裡，要再點選一次Color Presets選取剛剛import主題才算完成。</p><p><strong>設定字型</strong></p><p>因為有些主題會用到一些特殊 icon，所以 iTerm2 選用的字型必需要支援這種特殊 icon font。這類型的字體統稱為 powerline font。接下來分別輸入以下三個指令安裝powerline</p><pre>git clone git://github.com/powerline/fonts ~/.powerline_fonts</pre><pre>cd ~/.powerline_fonts</pre><pre>./install.sh</pre><p>接下來打開iTerm</p><pre>工具列選擇 iTerm &gt; Preferences &gt;Profile &gt; Text</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BIHlkm-ddAmKJrXotEayAA.png" /></figure><p>點選change font，選擇喜歡的字型，我選擇Sauce Code Pro Nerd Font Complete。</p><h3>#安裝 oh-my-zsh</h3><p>接下來就可以來裝 zsh 了，一般打開終端機出現的畫面都是在執行 bash 的畫面，而zsh是取代bash的shell，Mac已有內建，所以只要再安裝oh-my-zsh，它是個zsh的外掛，安裝後就有一堆設定可以用，讓terminal變得更稀花。</p><p>重新開啟terminal，輸入以下指令安裝：</p><pre>sh -c &quot;$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)&quot;</pre><p>預設主題是用內建的robbyrussell，可以發現畫面多了 git 資訊，也更人性化，除了預設的外，還有很多內建的主題可以換，可以到這參考：<a href="https://github.com/robbyrussell/oh-my-zsh/wiki/themes">https://github.com/robbyrussell/oh-my-zsh/wiki/themes</a>，看好你要的主題名稱。</p><p>輸入以下指令修改~/.zshrc檔案</p><pre>vim ~/.zshrc</pre><p>輸入i進入編輯模式，把 ZSH_THEME=&quot;robbyrussell” 改成喜歡的主題，我是選擇ys：</p><pre>ZSH_THEME=&quot;ys&quot;</pre><p>輸入:wq! 儲存並離開</p><p>接著輸入以下指令讓修改過的zsh生效</p><pre>exec $SHELL</pre><p>簡約又清楚的介面就完成啦！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gAGGWczpQEIi7ezBmd3zEQ.png" /><figcaption>是不是看起來舒服多啦！</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba63efd0df6a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nitas-learning-journey/mac%E7%B5%82%E7%AB%AF%E6%A9%9F-terminal-%E8%A8%AD%E5%AE%9A-iterm2-ba63efd0df6a">Mac終端機 (Terminal)設定： iTerm 2</a> was originally published in <a href="https://medium.com/nitas-learning-journey">Nita’s Learning Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[前端開發Day 2 ：建立React專案]]></title>
            <link>https://medium.com/nitas-learning-journey/%E5%89%8D%E7%AB%AF%E9%96%8B%E7%99%BCday-2-%E5%BB%BA%E7%AB%8Breact%E5%B0%88%E6%A1%88-f03e71e59c98?source=rss-d52f06ba872d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f03e71e59c98</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[create-react-app]]></category>
            <dc:creator><![CDATA[Nita Lin]]></dc:creator>
            <pubDate>Thu, 10 Jan 2019 07:56:44 GMT</pubDate>
            <atom:updated>2019-01-17T08:08:47.209Z</atom:updated>
            <content:encoded><![CDATA[<p>MacOS+Create React App V2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wU0k9fYoeD8yroNBqjLkOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v5RI-PwcHNr0zOR2DGasDw.png" /></figure><p>作業系統：MacOS</p><h3>【開發環境】</h3><ul><li>Node.js</li><li>NVM</li><li>VSCode</li></ul><h3>【名詞介紹】</h3><h3>#CRA（Create React App V2）</h3><p>Create React App，簡稱CRA，是一個可以簡單建立開發的React樣版工具 ，可以快速建立一個開發React用的專案樣版。2018年10月<a href="https://reactjs.org/blog/2018/10/01/create-react-app-v2.html">V2第二版正式發布</a>，在功能上做了升級及支援更多功能，主要變更為：</p><ul><li>更多的 CSS 工具支援： Sass、CSS Modules</li><li>更新的開發工具： Babel 7、webpack 4、Jest 23</li></ul><p>最重要且大家最在意的變革不外乎就是加上 Sass、CSS Modules這一類的CSS開發工具啦！</p><p>CRA不處理後端的邏輯或資料庫，但可以搭配自己想用的後端工具使用。CRA最棒的地方就是不需要安裝或設定Webpack和Babel之類的工具，它會預設並隱藏，可以省不少工。</p><h3>【開始建立專案】</h3><p>在CRA之前，請確認Nodejs和npm的使用版本：Node &gt;= 6 、npm &gt;= 5.2，Node.js及npm安裝教學請參考<a href="https://medium.com/nitas-learning-journey/%E5%89%8D%E7%AB%AF%E9%96%8B%E7%99%BCday1-%E5%BB%BA%E7%AB%8B%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83-1-313478df07d5">此篇</a>。</p><p>進入主題</p><p>打開terminal，前往要建立專案的資料夾底下，並輸入以下指令建立專案。（npx 無誤，這是npm 5.2+引入的一條指令）</p><pre>npx create-react-app react-test</pre><p>專案建立完成，會產生以下的目錄結構</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*mObdVDe9AnxwfOr8nPFkkw.png" /><figcaption>目錄結構</figcaption></figure><p>移動到建立的專案底下</p><pre>cd react-test</pre><p>輸入以下指令，在開發模式下執行app</p><pre>npm start</pre><p>若確定要正式deploy，輸入以下指令</p><pre>npm run build</pre><p>再打開以下位址</p><pre>http://localhost:3000</pre><p>一個最基本的React App就完成啦！</p><h3>【參考資料】</h3><ol><li><a href="https://reactjs.org/docs/create-a-new-react-app.html#create-react-app">https://reactjs.org/docs/create-a-new-react-app.html#create-react-app</a></li><li><a href="https://reactjs.org/blog/2018/10/01/create-react-app-v2.html">https://reactjs.org/blog/2018/10/01/create-react-app-v2.html</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f03e71e59c98" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nitas-learning-journey/%E5%89%8D%E7%AB%AF%E9%96%8B%E7%99%BCday-2-%E5%BB%BA%E7%AB%8Breact%E5%B0%88%E6%A1%88-f03e71e59c98">前端開發Day 2 ：建立React專案</a> was originally published in <a href="https://medium.com/nitas-learning-journey">Nita’s Learning Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[好消息：GitHub提供無上限的免費私人空間]]></title>
            <link>https://medium.com/nitas-learning-journey/%E5%A5%BD%E6%B6%88%E6%81%AF%E5%A5%BD%E6%B6%88%E6%81%AF-github%E6%8F%90%E4%BE%9B%E7%84%A1%E4%B8%8A%E9%99%90%E7%9A%84%E5%85%8D%E8%B2%BB%E7%A7%81%E4%BA%BA%E7%A9%BA%E9%96%93-95cdd7f9cfc4?source=rss-d52f06ba872d------2</link>
            <guid isPermaLink="false">https://medium.com/p/95cdd7f9cfc4</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Nita Lin]]></dc:creator>
            <pubDate>Tue, 08 Jan 2019 23:06:24 GMT</pubDate>
            <atom:updated>2019-01-09T06:10:54.158Z</atom:updated>
            <content:encoded><![CDATA[<p>GitHub新年大禮</p><p>GitHub送來了新年大禮，2019年1月8日GitHub發布了三項服務變更，對於小小的入門開發者，本次變更的重點是—我們將擁有無上限的免費私人空間啦！雖然有限制每個私人repository的協作者人數最多3人（公開的repository則無限制），但在一般使用上已足夠。</p><p><a href="https://blog.github.com/changelog/2019-01-08-pricing-changes">Unlimited free private repositories with GitHub Free and a unified business offering with GitHub Enterprise</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0wVNlsvu3o3pyUWoJy8hCg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95cdd7f9cfc4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nitas-learning-journey/%E5%A5%BD%E6%B6%88%E6%81%AF%E5%A5%BD%E6%B6%88%E6%81%AF-github%E6%8F%90%E4%BE%9B%E7%84%A1%E4%B8%8A%E9%99%90%E7%9A%84%E5%85%8D%E8%B2%BB%E7%A7%81%E4%BA%BA%E7%A9%BA%E9%96%93-95cdd7f9cfc4">好消息：GitHub提供無上限的免費私人空間</a> was originally published in <a href="https://medium.com/nitas-learning-journey">Nita’s Learning Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[前端開發Day 1： 建置開發環境 − 1]]></title>
            <link>https://medium.com/nitas-learning-journey/%E5%89%8D%E7%AB%AF%E9%96%8B%E7%99%BCday1-%E5%BB%BA%E7%AB%8B%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83-1-313478df07d5?source=rss-d52f06ba872d------2</link>
            <guid isPermaLink="false">https://medium.com/p/313478df07d5</guid>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Nita Lin]]></dc:creator>
            <pubDate>Mon, 07 Jan 2019 13:05:27 GMT</pubDate>
            <atom:updated>2019-01-17T08:08:03.027Z</atom:updated>
            <content:encoded><![CDATA[<p>MacOS+NVM+Node.js+NPM</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wU0k9fYoeD8yroNBqjLkOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ADzzkxEVxRGSlonNTKuYiQ.png" /></figure><p>作業系統: MacOS</p><h3><strong>【名詞介紹】</strong></h3><h3><strong>#Node.js</strong></h3><p>Node.js是一個能夠在伺服器端運行JavaScript的開放原始碼</p><h3>#<strong>NVM</strong></h3><p>Node.js版本不斷更新，有可能發生舊網站與新版的Node.js不相容，因此需要一個管理版本的工具，讓我們可以隨時切換所需要的版本，這就需要使用NVM （Node Version Manager）來執行。</p><h3>#NPM</h3><p>NPM（Node Package Manager）是Node.js下的主流套件管理工具, 可以讓Node.js開發者直接利用、擴充線上的第三方套件庫</p><h3><strong>【如何安裝】</strong></h3><p>我們的安裝順序將會是：NVM → Node.js+NPM</p><p>之前如果已經在官網下載安裝過Node.js的話，請先在Terminal輸入以下指令解除安裝。</p><pre>sudo rm -rf /usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/node.*}</pre><p>可用以下指令查詢已安裝的Node.js版本來確認是否已解除安裝成功。</p><pre>node -v</pre><p>進入主題</p><h3>#安裝NVM</h3><p>我們將透過Homebrew來安裝nvm，Homebrew是Mac專用的免費開源的軟體套件管理工具。</p><ol><li>安裝Homebrew</li><li>打開Terminal</li><li>依官網指示(<a href="https://brew.sh/">https://brew.sh/</a>) 將下面這段指令貼到Terminal上</li></ol><pre>/usr/bin/ruby -e &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)&quot;</pre><p>接下來用Homebrew來安裝nvm</p><p>4. 在Terminal上輸入以下指令安裝nvm。</p><pre>brew install nvm</pre><p>5. 完成安裝後，在Terminal上輸入以下指令把nvm加入shell中，讓我們可以直接在shell使用nvm指令。</p><pre>echo &quot;source $(brew --prefix nvm)/nvm.sh&quot; &gt;&gt; .bash_profile</pre><p>6. 在Terminal上輸入以下指令重新source我們的 .bash_profile 讓設定生效。</p><pre>. ~/.bash_profile</pre><p>7. 接下來我們要先查看有哪些版本可以被安裝。</p><pre>nvm ls-remote</pre><p>8. 發現太多了，懶得看所以直接安裝目前的穩定版。</p><pre>nvm install stable</pre><p>9. 查看是否安裝成功, 輸入以下指令顯示目前安裝版本。</p><pre>nvm ls</pre><h3>#安裝Node.js+NPM</h3><p>最後再來安裝Node.js</p><ol><li>前往官網（<a href="https://nodejs.org/en/">https://nodejs.org/en/</a>）下載LTS版本並安裝，完成後npm也同時安裝完成。</li><li>可用以下指令查詢已安裝的Node.js版本來確認是否已安裝成功。</li></ol><pre>node -v</pre><p>大功告成！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=313478df07d5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nitas-learning-journey/%E5%89%8D%E7%AB%AF%E9%96%8B%E7%99%BCday1-%E5%BB%BA%E7%AB%8B%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83-1-313478df07d5">前端開發Day 1： 建置開發環境 − 1</a> was originally published in <a href="https://medium.com/nitas-learning-journey">Nita’s Learning Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>