DEV Community

Tolu Kalejaiye
Tolu Kalejaiye

Posted on

Can I host a client site on my github?

Hey everyone. I could use a little advice on something. I'm taking on a project for a client, building them an ecommerce website. I plan on using gatsby.js to build it with netlify cms. Netlify uses your github repo as the "backend" to the app and for continuous deployment. Is it acceptable to have a client's source on my github? Should I create a separate github account to use for their repo? Not really sure how to navigate this as it's my first time taking on such a job. Any advice would be appreciated, thank you!

Top comments (5)

Collapse
 
peterj profile image
Peter Jausovec

I'd create a separate account (Github) that you can give to them after you're done. Since you'll be using Netlify, I would do the exact same thing for Netlify. Assuming this is not an ongoing project, you can hand-off everything to them and if they need/want to change anything, they can do it on their own, or they can hire you (or someone else) to make the changes.

Collapse
 
tkalejaiye profile image
Tolu Kalejaiye

That makes perfect sense, thank you very much!

Collapse
 
perkinsjr profile image
James Perkins

If you have to use a github repo with clients code make a private repo vs public. They are free to all users.

Collapse
 
tkalejaiye profile image
Tolu Kalejaiye

Thanks James! That was initially what I was thinking I could do, but like Peter said I'll probably just make accounts for the client on any of the platforms I'm using

Collapse
 
tvthatsme profile image
Timothy Vernon

You can also just manually deploy with the files of your project: netlify.com/docs/manual-deploys/. With this approach there is no need for a GitHub account either for you or your client.