DEV Community

Cover image for How To Host your static website with Github
Mohamed Amine Fh
Mohamed Amine Fh

Posted on

How To Host your static website with Github

You Have an Html, Css and Js files in your computer and you want to show it to your colleagues ?
Github Has an amazing static site hosting service that takes HTML, CSS, and JavaScript files straight from your repository

Lets go to the steps:

1- Create a repository with your username followed by

in my case my username is BegDevv, so the repo name would be :
Create a Repo

2- Upload your static files into that repository (Html/Css/Js)

you're done 💯 ❤ github will host your files in that repo automatically Go to https://{yourusername} (change yourusername with yours)

Top comments (4)

mishmanners profile image
Michelle Mannering

Very nice! ❤️ this super quick way to setup pages. If you want a more indepth tutorial, check out:

mahmoudessam profile image
Mahmoud EL-kariouny

Thanks a lot :)

xantosromero profile image
Santos Romero

Great resource, friend. Thanks for to share.

medaminefh profile image
Mohamed Amine Fh

Happy to share