DEV Community

Balaji sankar
Balaji sankar

Posted on

Depz

Depz
Depz

Hello all šŸ™ŒšŸ»

This article is about my #DepZ[WIP]

What isĀ Depz?

DepZ is an open source platform for hosting static websites.

Why I builtĀ DepZ?

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.

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?"
So there is a need for deployment which is cost-efficient, secure and not to share source code.

Continuous Deployment

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.

How can we achieve allĀ this?

There are many ways to deploy static sites:
1. Now
2. S3 Bucket
3. Azure
4. Google cloud
5. Heroku
6. Surge

For continuous deployment :
. 1. Bitbucket Pipelines
2. Amazon Pipelines

How DepZ works?Ā šŸŽ©

DepZ integrates Bitbucket with Amazon's S3.

  1. Login to Bitbucket Account

    Depz
    BitBucket Login

  2. Once you log in, Itā€™ll display all the repo in that bitbucket account.

    Depz
    BitBucket Repo List

  3. Select a repo which you want to deploy

    Depz
    Deploy Settings

  4. Once the deployment is done, a URL will be generated.

    Depz
    Live URL

  5. Once the site is live, We need to pull the code from BitBucket repo because continuous deployment is handled via pipelines.

/*AWS region selection, Pipelines are #WIP./

Setup DepZ

    1. Setup the Bitbucket OAuth.
2. Update the secret key in the source code.
3. Store the AWS key and AWS secret in the BitBucket env variable.
4. Deploy the site šŸ˜ˆ
Enter fullscreen mode Exit fullscreen mode




Future Goals

Integrate

  1. Git Provider
    • GitHub
    • GitLab
  2. Deployment
    • Now
    • GitHub Pages
    • Azure
    • Google cloud
    • Heroku
    • Surge
  3. Amazon Code pipelinesĀ 
  4. Custom Domains.
  5. HTTPS
    1. Amazon Certificate Manager ( Using Google Puppeteer )
    2. LetsEncrypt

You can check this out here: https://depz.balajisankar.tech/
And here is the code if you want to play around: https://bitbucket.org/ibalajisankar/depz/
Did you like what you read

We can also connect on Twitter @ibalajisankar

Top comments (0)