<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vamsi Krishna</title>
    <description>The latest articles on DEV Community by Vamsi Krishna (@vamsikrish).</description>
    <link>https://dev.to/vamsikrish</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F240365%2F8cc5516c-9e7a-45ad-b74e-810e13b071b8.png</url>
      <title>DEV Community: Vamsi Krishna</title>
      <link>https://dev.to/vamsikrish</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vamsikrish"/>
    <language>en</language>
    <item>
      <title>Create your own personal website quickly with Gatsby</title>
      <dc:creator>Vamsi Krishna</dc:creator>
      <pubDate>Tue, 01 Oct 2019 15:30:25 +0000</pubDate>
      <link>https://dev.to/vamsikrish/create-your-own-personal-website-quickly-with-gatsby-2oko</link>
      <guid>https://dev.to/vamsikrish/create-your-own-personal-website-quickly-with-gatsby-2oko</guid>
      <description>&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: This has been published on my personal blog built using same steps which was hosted @ &lt;a href="https://vamsikrish.me/"&gt;https://vamsikrish.me/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As a developer, we all want to have neat portfolio that we can showcase to our potential employers and increase our chances of success.&lt;/p&gt;

&lt;p&gt;Plenty of job openings also have an optional field to provide our own portfolio links/website links/blog links which is optional in most of the cases but provides a chance to differentiate our application from others.&lt;/p&gt;

&lt;p&gt;So, Let's quickly look at how we can stand-up our own website quickly using &lt;a href="https://www.gatsbyjs.org/"&gt;Gatsby&lt;/a&gt;. Specifically, I'll show how to spinup your own blog and you can use the same steps with a different template to build your own.&lt;/p&gt;




&lt;h2&gt;
  
  
  Environment Set-Up
&lt;/h2&gt;

&lt;p&gt;Make sure you have the following already installed on your system as a pre-requisites:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Node.JS&lt;/li&gt;
&lt;li&gt;Git&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now Let's install &lt;strong&gt;gatsby-cli&lt;/strong&gt;, the main tool to work with gatsby. You can install gatsby-cli using the following command :&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;npm install -g gatsby-cli&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This will install the gatsby-cli as a global command on your system so you can use it from anywhere on your system.&lt;/p&gt;

&lt;p&gt;Let's create a new site.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;gatsby new your-site-name&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This will create a folder with your-site-name, initialise a git repository and fetch the default template and set all the things up for you. This is a barebones site from which you can fully customize everything.&lt;/p&gt;

&lt;p&gt;But we can override the default template and use other templates too using the following command:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;gatsby new your-site-name template-url&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I'll be using one which I used to build my personal blog. You can also pick one from the starter templates from &lt;a href="https://www.gatsbyjs.org/starters/?v=2"&gt;Here&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;gatsby new your-site-name &lt;a href="https://github.com/gatsbyjs/gatsby-starter-blog"&gt;https://github.com/gatsbyjs/gatsby-starter-blog&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Once this is done, we can navigate into our new folder using&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;cd your-site-name&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now, we can run the dev server which gatsby provides to see the site and make changes to the code and see those changes live reload.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;gatsby develop&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This will start the dev server by default at &lt;code&gt;localhost:8000&lt;/code&gt; if that port isnt available it will pick the next available port and you can see at which location the server is running on the terminal.&lt;/p&gt;

&lt;p&gt;Now if you navigate to that url and you can see your personal blog up and running.&lt;/p&gt;

&lt;p&gt;Well, it is currently not so personal yet you need to edit the name and other info from those to your own.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Add your own posts - Navigate to &lt;em&gt;content/blog&lt;/em&gt; folder and remove exisiting content and create your own posts in the same format.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Edit the Bio - Navigate to &lt;em&gt;gatsby-config.js&lt;/em&gt; file and change the values to your own&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once you're done with all the changes you can stop the dev server by pressing Ctrl+C (Windows) and build the production build using&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;gatsby build&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now this will produce the optimised production output in the &lt;code&gt;public&lt;/code&gt; folder which you can store in a server to publish to the internet.&lt;/p&gt;

&lt;p&gt;Now you can publish your site for free using many ways like netlify, github pages etc but I'll show how to host this static site using Cloud Platform AWS since I'm into learning AWS( and maybe Azure also) these days.&lt;/p&gt;

&lt;p&gt;If you want to learn more about gatsby you can watch Andrew Mead Free Course on Youtube &lt;a href="https://www.youtube.com/watch?v=8t0vNu2fCCM"&gt;GatsbyJS - The Great Gatsby Bootcamp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;P.S : I haven't watched it yet since I am not much into front-end development that is why I have made minimal changes to this blog also. But I have taken his other course on Node.JS and is seriously impressed, so recommending his other course.&lt;/p&gt;

&lt;p&gt;P.S : &lt;a href="https://overreacted.io/"&gt;Dan Abramov&lt;/a&gt; also created his personal blog using Gatsby using the same starter template and added a cool night mode toggle and it is open-source so your start from there too. Maybe I'll update mine just to get that night mode. 🤩&lt;/p&gt;

</description>
      <category>gatsby</category>
      <category>react</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
