<?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 Luke Zhang on Medium]]></title>
        <description><![CDATA[Stories by Luke Zhang on Medium]]></description>
        <link>https://medium.com/@lukezhang_84434?source=rss-226b40ad0d44------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hkoeUULzjIn113rr.</url>
            <title>Stories by Luke Zhang on Medium</title>
            <link>https://medium.com/@lukezhang_84434?source=rss-226b40ad0d44------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 16:53:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lukezhang_84434/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[Host your website for FREE using Github Pages]]></title>
            <link>https://medium.com/@lukezhang_84434/host-your-website-for-free-using-github-pages-fe8a5b228848?source=rss-226b40ad0d44------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe8a5b228848</guid>
            <category><![CDATA[personal-web-site]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[portfolio]]></category>
            <category><![CDATA[diy]]></category>
            <dc:creator><![CDATA[Luke Zhang]]></dc:creator>
            <pubDate>Wed, 12 Feb 2020 00:00:09 GMT</pubDate>
            <atom:updated>2020-02-12T00:00:09.661Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A simple site created from your laptop" src="https://cdn-images-1.medium.com/max/1024/0*bktGx5frTSVXfch2" /><figcaption>Photo by <a href="https://unsplash.com/@igormiske?utm_source=medium&amp;utm_medium=referral">Igor Miske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It’s 2020, everybody has a website to display their whatever. It can be a portfolio, a blog or a merchandising site. People use their sites to showcase their design, tech, creativity, etc. Wouldn’t you want to have a site of your own too?</p><p>This tutorial will teach you how to host your site, for <strong>FREE</strong>, using <a href="https://pages.github.com/">Github Pages</a>.</p><h4><strong>Prerequisite:</strong></h4><ol><li>Install <a href="https://git-scm.com/book/en/v2/Getting-Started-Installing-Git">Git</a></li><li><a href="https://github.com/">Github</a> account</li><li>Install <a href="https://nodejs.org/en/download/">Node.js</a></li></ol><h4>Step 1: Create your site locally</h4><p>There are many front-end frameworks out there, here we are going to use one of the most popular ones, <strong>React</strong>, developed by Facebook.</p><pre>npx create-react-app personal-website<br>cd personal-website<br>npm start</pre><p>And in your browser, you will see the following website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9f8_OYGJsLdYONiQDtallw.png" /><figcaption>Not the fanciest site, but it’s something</figcaption></figure><h4>Step 2: Create Github Repo</h4><ol><li>Create a new repo on Github</li><li>Link your website to your remote repo</li></ol><pre>git remote add origin &lt;insert your repo url here&gt;</pre><h4>Step 3: Enable Github Pages</h4><p>The meat of this tutorial is gh-pages , install it with</p><pre>npm install gh-pages --save-dev</pre><p>Next, let’s edit your package.json .</p><p>First, we need to add homepage to the top level, it should look like</p><pre>&quot;homepage&quot;: &quot;http://&lt;Github user name&gt;.github.io/&lt;Github repo name&gt;&quot;</pre><p>Then, let’s insert the following under scripts</p><pre>&quot;scripts&quot;: {<br>  ...<br>  &quot;predeploy&quot;: &quot;npm run build&quot;,<br>  &quot;deploy&quot;: &quot;gh-pages -d build&quot;<br>}</pre><p>Your package.json in the end should look like this:</p><pre>&quot;homepage&quot;: &quot;http://&lt;Github user name&gt;.github.io/&lt;Github repo name&gt;&quot;,<br>...<br>&quot;scripts&quot;: {<br>  ...<br>  &quot;predeploy&quot;: &quot;npm run build&quot;,<br>  &quot;deploy&quot;: &quot;gh-pages -d build&quot;<br>}<br>...</pre><h4>Step 4: Push your site to Github!</h4><p>Run this command</p><p>npm run deploy</p><p>Wait until your terminal says “Published”, then you are good to go!</p><p>Go to your Github repo -&gt; Settings -&gt; Scroll down to Github Pages, you should see</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IAdywyqH-5w8GCirjWFb5Q.jpeg" /><figcaption>The missing part is your site’s url</figcaption></figure><p>Click on it and Viola! Your site is up!</p><p>I hope you enjoyed this tutorial and started creating your first website. It may not have anything at the moment. Don’t worry, check out my other tutorials on how to refine your website and streamline the entire process.</p><p>If you have any questions, don’t hesitate to leave a comment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe8a5b228848" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>