DEV Community

Cover image for Hosting on Github
andysaktia
andysaktia

Posted on • Edited on

1 1

Hosting on Github

Here are the steps for creating free web hosting using github as the hosting site:

1. Create a new Repo

Create a repo by pressing the green New button, then name the repo according to your user account name, for example user-name.github.io. This is done so that the outside domain name will follow the base github hosting name.

Alt Text

2. Create file

The first file name that needs to be created is index.html with dummy html fields like <h1>Hello World</h1> to test the page later after the Repo is set as root (See step 3). The stages of creating a file are like clicking the Add file button > Create New file.

Alt Text

3. Enable Repo

The step is to go to settings > go to pages > source, use the dropdown menu to select the publishing source folder (usually default source reads None), by selecting root/master. When finished click Save.

Alt Text

The last step you can check on the address user-name.github.io. The index.html page should be readable.

====
Reference: configuring github pages site

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay