<?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: Balaji sankar</title>
    <description>The latest articles on DEV Community by Balaji sankar (@ibalajisankar).</description>
    <link>https://dev.to/ibalajisankar</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%2F68382%2Fa36594a7-fda2-4fa1-be6e-d7496332314c.jpg</url>
      <title>DEV Community: Balaji sankar</title>
      <link>https://dev.to/ibalajisankar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ibalajisankar"/>
    <language>en</language>
    <item>
      <title>Depz</title>
      <dc:creator>Balaji sankar</dc:creator>
      <pubDate>Thu, 20 Sep 2018 11:54:55 +0000</pubDate>
      <link>https://dev.to/ibalajisankar/depz-14g5</link>
      <guid>https://dev.to/ibalajisankar/depz-14g5</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fs1q8ubrpn2t11gu2ilm1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fs1q8ubrpn2t11gu2ilm1.png" alt="Depz"&gt;&lt;/a&gt;Depz &lt;/p&gt;

&lt;p&gt;Hello all 🙌🏻&lt;/p&gt;

&lt;p&gt;This article is about my #DepZ[WIP]&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Depz?
&lt;/h2&gt;

&lt;p&gt;DepZ is an open source platform for hosting static websites.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built DepZ?
&lt;/h2&gt;

&lt;p&gt;While the product is in development, most of the organisations purchase 3 to 4 instances. They usually maintain Dev, Staging, Test, PreProd, Prod. For each build, they need a specific instance (mostly an EC2 t3.nano instance), it costs about $15 per instance.&lt;/p&gt;

&lt;p&gt;We can achieve this with some platform like Netlify, but most of the people get this question "Why do we need to share our entire source code?"&lt;br&gt;
So there is a need for deployment which is cost-efficient, secure and not to share source code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Continuous Deployment
&lt;/h2&gt;

&lt;p&gt;As we are high-level apathetic individuals, We never like to build our website and copy the build file to a specific instance. So there is a need for continuous integration.&lt;/p&gt;

&lt;h2&gt;
  
  
  How can we achieve all this?
&lt;/h2&gt;

&lt;p&gt;There are many ways to deploy static sites:&lt;br&gt;
        1. Now&lt;br&gt;
        2. S3 Bucket&lt;br&gt;
        3. Azure&lt;br&gt;
        4. Google cloud&lt;br&gt;
        5. Heroku&lt;br&gt;
        6. Surge&lt;/p&gt;

&lt;p&gt;For continuous deployment :&lt;br&gt;
.           1. Bitbucket Pipelines&lt;br&gt;
            2. Amazon Pipelines&lt;/p&gt;

&lt;h2&gt;
  
  
  How DepZ works? 🎩
&lt;/h2&gt;

&lt;p&gt;DepZ integrates Bitbucket with Amazon's S3.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Login to Bitbucket Account&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fs1q8ubrpn2t11gu2ilm1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fs1q8ubrpn2t11gu2ilm1.png" alt="Depz"&gt;&lt;/a&gt;BitBucket Login &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once you log in, It’ll display all the repo in that bitbucket account.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fyzyb3jl6rj6wje321ygq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fyzyb3jl6rj6wje321ygq.png" alt="Depz"&gt;&lt;/a&gt;BitBucket Repo List &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select a repo which you want to deploy&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F0j9gv708c8l7jo4rxms0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F0j9gv708c8l7jo4rxms0.png" alt="Depz"&gt;&lt;/a&gt;Deploy Settings &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once the deployment is done, a URL will be generated.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fu1lqe1e1zkhi99n5h0zb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fu1lqe1e1zkhi99n5h0zb.png" alt="Depz"&gt;&lt;/a&gt;Live URL &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once the site is live, We need to pull the code from BitBucket repo because continuous deployment is handled via pipelines.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;/*AWS region selection, Pipelines are #WIP./&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup DepZ
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    1. Setup the Bitbucket OAuth.&lt;br&gt;
    2. Update the secret key in the source code.&lt;br&gt;
    3. Store the AWS key and AWS secret in the BitBucket env variable.&lt;br&gt;
    4. Deploy the site 😈&lt;br&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Future Goals&lt;br&gt;
&lt;/h2&gt;

&lt;p&gt;Integrate&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Git Provider

&lt;ul&gt;
&lt;li&gt;GitHub&lt;/li&gt;
&lt;li&gt;GitLab&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Deployment

&lt;ul&gt;
&lt;li&gt;Now&lt;/li&gt;
&lt;li&gt;GitHub Pages&lt;/li&gt;
&lt;li&gt;Azure&lt;/li&gt;
&lt;li&gt;Google cloud&lt;/li&gt;
&lt;li&gt;Heroku&lt;/li&gt;
&lt;li&gt;Surge&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Amazon Code pipelines &lt;/li&gt;
&lt;li&gt;Custom Domains.&lt;/li&gt;
&lt;li&gt;HTTPS

&lt;ol&gt;
&lt;li&gt;Amazon Certificate Manager ( Using Google Puppeteer )&lt;/li&gt;
&lt;li&gt;LetsEncrypt&lt;/li&gt;
&lt;/ol&gt;


&lt;/li&gt;

&lt;/ol&gt;

&lt;p&gt;You can check this out here: &lt;a href="https://depz.balajisankar.tech/" rel="noopener noreferrer"&gt;https://depz.balajisankar.tech/&lt;/a&gt;&lt;br&gt;
And here is the code if you want to play around: &lt;a href="https://bitbucket.org/ibalajisankar/depz/" rel="noopener noreferrer"&gt;https://bitbucket.org/ibalajisankar/depz/&lt;/a&gt;&lt;br&gt;
Did you like what you read &lt;/p&gt;

&lt;p&gt;We can also connect on Twitter &lt;a class="mentioned-user" href="https://dev.to/ibalajisankar"&gt;@ibalajisankar&lt;/a&gt;&lt;/p&gt;

</description>
      <category>wip</category>
      <category>amazon</category>
      <category>opensource</category>
      <category>s3</category>
    </item>
  </channel>
</rss>
