DEV Community

Balaji sankar
Balaji sankar

Posted on

3 2

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

Image of Timescale

๐Ÿš€ pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applicationsโ€”without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Image of Timescale

Timescale โ€“ the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay