Live data from Hacker News

Ask HN: What is the cheapest way to make a website?

news.ycombinator.com

11–20 of 99 posts

Re: Ask HN: What is the cheapest way to make a website?

#12
GitHub pages / GitLab pages. I prefer the latter since the CI for pages is less magical and more flexible as a result - you aren't limited to what they support, and they don't claim a 100GB* traffic limit (just fair use). Couple with a cheap .com and free Cloudflare for DNS and caching.

* Corrected mistake, was 10GB

Re: Ask HN: What is the cheapest way to make a website?

#13
I'd recommend Hugo or similar plus netlify. It's incredibly easy to get a static (or mostly static) page up and available. Use someone else's template, then you can deal with everything with drag & drop if you want.

It's all also free unless you want more features, and you can easily take it and host elsewhere (like S3).

Re: Ask HN: What is the cheapest way to make a website?

#14
post #12

GitHub pages / GitLab pages. I prefer the latter since the CI for pages is less magical and more flexible as a result - you aren't limited to what they support, and they don't claim a 100GB* traffic limit (just fair use). Couple with a cheap .com and free Cloudflare for DNS and caching. * Corrected mistake, was 10GB

This is my entire CI yaml, which copies static HTML and other files (I don't use any static site generator, just plain HTML & CSS) and flushes the Cloudflare cache:

  stages:
    - deploy
    - clear-cache
  pages:
    stage: deploy
    script:
      - mkdir .public
      - cp -r * .public
      - mv .public public
    artifacts:
      paths:
        - public
    only:
      - master

  clear-cache:
    stage: clear-cache
    script:
     - curl -X DELETE "https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/purge_cache" -H "X-Auth-Key:$CF_AUTH_KEY" -H "X-Auth-Email:$CF_AUTH_EMAIL" -H "Content-Type:application/json" --data '{"purge_everything":true}'
    only:
     - master

Re: Ask HN: What is the cheapest way to make a website?

#17
post #12

GitHub pages / GitLab pages. I prefer the latter since the CI for pages is less magical and more flexible as a result - you aren't limited to what they support, and they don't claim a 100GB* traffic limit (just fair use). Couple with a cheap .com and free Cloudflare for DNS and caching. * Corrected mistake, was 10GB

GitHub pages soft bandwidth limit is 100GB/mo (https://help.github.com/en/github/working-with-github-pages/...)

Re: Ask HN: What is the cheapest way to make a website?

#20
In addition to the Gitlab/Github options, AWS S3 by itself is fairly decent and a few pennies. You can front it by cloudfront for more money if you need a global CDN.

There's also NearlyFreeSpeech[^1] which is very cheap and very free speech oriented.

[^1]: https://www.nearlyfreespeech.net/

Post reply on HN