Live data from Hacker News

Ask HN: How hard is it to build a platform like Netlify?

news.ycombinator.com

11–20 of 21 posts

Re: Ask HN: How hard is it to build a platform like Netlify?

#11
I use an execution system to run scripts on remote hosts. I create dns via api calls, configure a web server to accept that domain, which points to a parked landing page. When ready I run another script that pulls the latest tag from git and drops it onto the web server . These pages are served until I make a change to git and push deploy. I would like to make a ui to this but my JS skills suck donkey butt.

Re: Ask HN: How hard is it to build a platform like Netlify?

#13
post #3

I recently used Netlify to deploy a Gatsby site, the experience of deployment is so easy: just link a GitHub repo or drop in the project directory. The Netlify community forums are really helpful too. If you’ve any questions please ask!

Wow savage downvoting on that. I wonder why? Was the comment edited?

Re: Ask HN: How hard is it to build a platform like Netlify?

#14
I built something similar with the same basic functionality although lacking all the polish. Basically I had a cheap vps with docker installed and a small control panel where a user could log into github and pick a repo and add domain names. There was then a number of glue scripts to pull and build the sites and deploy them as Caddy server containers, this handled all the automatic TLS and static file serving. I had all these load balanced with nginx listening to the docker deamon and restarting. In hindsight the whole thing could have been a good opportunity to learn and use k8s, maybe would have been simpler to piece together but I learned a lot.

Re: Ask HN: How hard is it to build a platform like Netlify?

#15
Recently I've discovered commonshost and it seems like a great way to host a content. It's a free global CDN with < 30ms for most of the regions I've tested. If you want to startup a node in your region it only costs around 200$ for the equipment to run a node

Re: Ask HN: How hard is it to build a platform like Netlify?

#16
post #3

I recently used Netlify to deploy a Gatsby site, the experience of deployment is so easy: just link a GitHub repo or drop in the project directory. The Netlify community forums are really helpful too. If you’ve any questions please ask!

Wow savage downvoting on that. I wonder why? Was the comment edited?

I’m surprised that a pretty vanilla comment got so much hate, it’s hard to please everyone!

Re: Ask HN: How hard is it to build a platform like Netlify?

#17
post #16

Earlier quoted context omitted.

Wow savage downvoting on that. I wonder why? Was the comment edited?

I’m surprised that a pretty vanilla comment got so much hate, it’s hard to please everyone!

It has absolutely nothing to do with the question, why wouldn't it be downvoted?

Re: Ask HN: How hard is it to build a platform like Netlify?

#18
post #17
post #16

Earlier quoted context omitted.

I’m surprised that a pretty vanilla comment got so much hate, it’s hard to please everyone!

It has absolutely nothing to do with the question, why wouldn't it be downvoted?

I totally misread the question, my bad!

Re: Ask HN: How hard is it to build a platform like Netlify?

#19
post #17
post #16

Earlier quoted context omitted.

I’m surprised that a pretty vanilla comment got so much hate, it’s hard to please everyone!

It has absolutely nothing to do with the question, why wouldn't it be downvoted?

The shade of grey was unreadable that implies a lot of downvotes. This is usually reserved for pure trolling style comments.

Re: Ask HN: How hard is it to build a platform like Netlify?

#20
It depends on how much of it you want to recreate. Like, do you want to create the servers, or are you happy letting a CDN do the heavy lifting? If it's the latter, you can deploy to GitHub pages, and then use CloudFlare's CDN. I don't think I need to post it here since it's HN, but I documented this technique in a comprehensive article once[0].

On the other end, though, you can buy small storage units and put Raspberry Pi 4s all around the world, and to mimic the CDN-ness of it. You'd need a central build server, which doesn't matter where it physically is, but it'd push JAM builds to your CDN network, and then a DNS server that routes requests to the right CDN node depending on the Geolookup of the IP address.

[0]: https://www.toptal.com/github/unlimited-scale-web-hosting-gi...

Post reply on HN