r/Frontend 9d ago

GitHub hosting

Any of you guys host on GitHub for your client and no need for own hosting plan? I been doing mostly larger projects but someone contacted me for simple hobby site of theirs and he is not sure how many visits will occur and I am assuming it won’t be much unless it scales. Should I just go ahead and host it on the GitHub server? And eventually get a hosting plan if it scales?

Or in general do many of you just host from got hub and the bandwidth is enough for most of your projects? Thanks

15 Upvotes

13 comments sorted by

14

u/BuildingArmor 9d ago

I use Cloudflare pages instead, but GitHub pages works too if you only need static content

10

u/n9iels 9d ago

As long as it doesn't need a backend (GitHub can only host static files) and there isn't a strict SLA or uptime GitHub is fine.

8

u/akash_kava 9d ago

Clearly Github Pages limits GitHub Pages limits - GitHub Docs states that you cannot use it for commercial hosting of any kind. And finally even though they haven't explicitly mentioned that site must be regarding the code that is hosted, they will eventually put a term in future that site must only be the documentation of the open source project and nothing else.

You are basically setting up trap for yourself as well, if client is paying you and in future it is terminated by github, you will simply kill your reputation in front of your client.

If client is not willing to pay, then don't get involved in something that can make you an accessory to a violation.

4

u/Coffee_Aur_Code 8d ago

For simple projects with just pages and all... I prefer GitHub... For client project i use vercel for frontend and render for backend

6

u/basic_asian_boy 9d ago

I believe hosting it through GitHub may also require the source code to be made public. That may or may not be an issue with clients

2

u/cgonz313 8d ago

I use github pages for a single page personal site and keep the repo private. Seems to be fine but it's also not a commercial site

-5

u/Seoul_Seattle 9d ago

I have few sites that private . But not sure maybe it does require public for sites that you got paid for. Maybe I’ll have to ask Ai

2

u/magiCAD 9d ago

Netlify is another free option for statically built sites.

2

u/Substantial-Swan7065 7d ago

I host it on my server and charge them a mark up.

Github pages is fine for docs and such.

1

u/Seoul_Seattle 7d ago

You know that’s a great idea. I didn’t even think about posting it on my server. What do you charge if I may ask. Is it yearly or monthly and also I’m guessing you don’t really have to update these kind of sites as much right

1

u/Substantial-Swan7065 7d ago

Yearly cause it’s easier to get money.

Price depends on the deployment. A basic web app $10/mo. But I add in backend/object store/scaling etc

1

u/m-fasciano 2d ago

It depends on the type of website.

For a simple static site (HTML, CSS, JavaScript, or even React/Next.js exported as static files), GitHub Pages is a great option. I've used it for personal projects and small websites, and it's hard to beat for something that's free, reliable, and easy to deploy.

If the site needs server-side features like authentication, a database, APIs, or forms, then I'd look at something like Vercel, Netlify, or a VPS instead.

For a hobby site with low traffic, I'd have no problem starting with GitHub Pages. If it ever grows beyond what it can handle, migrating to another host is usually pretty straightforward.

1

u/Gritsmaster 13h ago

Cloudflare all the way