<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><generator uri="https://jekyllrb.com/" version="3.9.5">Jekyll</generator><link href="w4spy.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="w4spy.github.io/" rel="alternate" type="text/html" hreflang="en-US" /><updated>2024-04-10T12:30:30+00:00</updated><id>w4spy.github.io/feed.xml</id><title type="html">Zakarya Mermoul</title><subtitle>He's writing somewhere about technology and experience as a journal  for documentation things that he learned, meet him &lt;a href=&quot;https://github.com/w4spy&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;@github&lt;/a&gt;.</subtitle><author><name>Zakarya Mermoul</name><email>zed.owftz@aleeas.com</email></author><entry><title type="html">How this site was born 👶</title><link href="w4spy.github.io/how-this-site-was-made/" rel="alternate" type="text/html" title="How this site was born 👶" /><published>2023-02-25T21:05:17+00:00</published><updated>2023-02-25T21:05:17+00:00</updated><id>w4spy.github.io/how-this-site-was-made</id><content type="html" xml:base="w4spy.github.io/how-this-site-was-made/"><![CDATA[<p>The website was made using Jekyll the open source static sites generator, and klisé simple theme.</p>
<hr />

<p>All the services are free, source code of the site was placed on <a href="https://github.com/piharpi/mahendrata.now.sh">github</a> repository and intergration with <a href="https://netlify.com">netlify</a> service, another service that you can use is <a href="https://pages.github.com/">github pages</a> for hosting your own static site.</p>

<hr />

<h4 id="lets-do-this">Let’s do this</h4>

<p>So, before we start creating our site, we need some tools, you can seek how to install each one by yourself , in this guide i will just show you how to install jekyll and deploy your site on  netlify, but make sure you have installed the following tools.</p>

<h4 id="prerequisites">Prerequisites</h4>

<p>Requirements before the magic show.</p>

<ul>
  <li><a href="https://www.ruby-lang.org/en/downloads/">Ruby</a> programming language</li>
  <li><a href="https://git-scm.com">Git</a> (version control)</li>
  <li><a href="https://netlify.com">Netlify</a> and <a href="https://github.com">Github</a> account</li>
  <li><a href="https://bundler.io">Bundler</a></li>
</ul>

<h4 id="installation">Installation</h4>

<p>First, you need some <a href="https://www.staticgen.com/">SSG</a>, there are many kinds of ssg, but in case i’m using Jekyll cause i’m already familiar with it, open your terminal and type command on below</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>bundle <span class="nb">install </span>jekyll <span class="c"># installing jekyll in your machine</span>
<span class="nv">$ </span>jekyll new my-site <span class="o">&amp;&amp;</span> <span class="nb">cd </span>my-site <span class="c"># create new jekyll project</span>
<span class="nv">$ </span>jekyll s <span class="c"># run jekyll server</span>
</code></pre></div></div>

<p>Now, jekyll is running on your local machine, open your browser and go to <code class="language-plaintext highlighter-rouge">localhost:4000</code> is default address from jekyll, press <kbd>CTRL</kbd> + <kbd>C</kbd> to stop the jekyll server.</p>

<h4 id="adding-remote-repository">Adding remote repository</h4>

<p>Before we add a remote repository, you must have <a href="https://github.com/new">github</a> repository, if you already have a repository, just add github remote address to your local folder, with the following commands</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>git init <span class="c"># initializing project folder</span>
<span class="nv">$ </span>git remote add origin https://github.com/YOUR-USERNAME/YOUR-REPO.git <span class="c"># change UPPERCASE with your own!</span>
<span class="nv">$ </span>git add <span class="nt">-A</span> <span class="o">&amp;&amp;</span> git commit <span class="nt">-m</span> <span class="s2">"Initialize"</span> <span class="o">&amp;&amp;</span> git push <span class="nt">-u</span> origin master <span class="c"># push code to github</span>
</code></pre></div></div>

<p>Now check your github repository, make sure the files is uploaded correctly.</p>

<h4 id="deploying-to-netlify">Deploying to netlify</h4>

<p>Go <a href="https://netlify.com">netlify</a> dashboard, and follow these steps.</p>

<ol>
  <li>click <code class="language-plaintext highlighter-rouge">new site from git</code>, then choose <code class="language-plaintext highlighter-rouge">Github</code>.</li>
  <li>then choose your repository where is the jekyll sources uploaded.</li>
  <li>netlify smart enough to set it up, we just need to click <code class="language-plaintext highlighter-rouge">Deploy site button</code>.</li>
</ol>

<p>Wait for a moment, and voila..! your site is up and using <code class="language-plaintext highlighter-rouge">.netlify.com</code> domain, if want your  website to look professional, just buy a domain from your favorite domain store, or you can use free domain names such as freenom.</p>

<p>So, what are you waiting for, just create your own website for free.</p>

<p>happy coding!!</p>]]></content><author><name>Zakarya Mermoul</name><email>zed.owftz@aleeas.com</email></author><category term="blog" /><category term="netlify" /><category term="jekyll" /><category term="github" /><summary type="html"><![CDATA[All the services are free, a source code of this site placed on github repository and intergration with netlify service, another service that you can use is github page for hosting your own static site.]]></summary></entry></feed>