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 .github.io

in my case my username is BegDevv, so the repo name would be BegDevv.github.io :
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}.github.io (change yourusername with yours)

Top comments (4)

Collapse
 
mishmanners profile image
Michelle Mannering

Very nice! ❤️ this super quick way to setup pages. If you want a more indepth tutorial, check out: dev.to/github/how-to-use-github-pa...

Collapse
 
mahmoudessam profile image
Mahmoud EL-kariouny

Thanks a lot :)

Collapse
 
xantosromero profile image
Santos Romero

Great resource, friend. Thanks for to share.

Collapse
 
medaminefh profile image
Mohamed Amine Fh

Happy to share